ForNeVeR / ForNeVeR/AvaloniaRider

Preview does not work ("No project") when using the multi-project approach (to work with the platform-specific APIs)

Open
#492 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind:bug status:help-wanted
Dominant language
Kotlin
Stars
583
Forks
32
Avg merge
2h 23m
Merged PRs (30d)
1

Description

### Environment
* macOS Sonoma 14.6.1
* Rider 2024.3.5
* AvaloniaRider 1.5.2

### Steps to reproduce:
* download a test project [macOSApp6.zip](https://github.com/user-attachments/files/19348081/macOSApp6.zip)
* build and make sure that `macOSApp6.Desktop` project can be run.
* open any `axaml` (e.g. `MainView.axaml`) and show the preview.

Expected: preview works (because the runnable project `macOSApp6.Desktop` referencing the `macOSApp6` class library and the mentioned `axaml` belongs to this class library).
Actual: no preview + "No project" (Unable to find any projects referencing the current one that are runnable on the host system. Avalonia Previewer requires a locally-runnable project to show the preview.) warning.

### Additional notes
The two-project solution is used because we need to access the mac-specific API (the `NSAlert` in the example).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the attached macOSApp6.zip in Rider 2024.3.5: open MainView.axaml from the macOSApp6 class library while macOSApp6.Desktop is runnable. Investigate how the preview selects a runnable referencing project; done when the preview opens instead of showing “No project.”

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.