JetBrains / aspire-plugin

.NET Aspire Plugin for JetBrains Rider
https://plugins.jetbrains.com/plugin/23289-aspire
MIT License
62 stars 2 forks source link

.net 9 aspire "error": "no runner found for execution type 'IDE'" #292

Closed huberttrueselftrueme closed 5 days ago

huberttrueselftrueme commented 5 days ago

Describe the bug After upgrade form .net 8 to .net 9 Aspire project stop working. It seams that project resources can't run. The same code work when run manually dotnet run form terminal or VS Core. I tested, and reproduce this behaviour with existing projects, new project to existing solution, new solution form .net aspire template .net 9.

To Reproduce Steps to reproduce the behavior:

  1. Install .NET 9
  2. Create solution form .net aspire starter tempalte
  3. debug / run

Screenshots image

Logs Updating application model resource mongodb with Container resource mongodb-zrsgyxbk info: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0] service /mongodb-mongoexpress is now in state Ready {"ServiceName": {"name":"mongodb-mongoexpress"}, "Reconciliation": 13} trce: Aspire.Hosting.Dcp.ApplicationExecutor[0] Updating application model resource mongodb-mongoexpress with Container resource mongodb-mongoexpress-kucnkfcx info: Aspire.Hosting.Dcp.dcpctrl.ServiceReconciler[0] service /mongodb is now in state Ready {"ServiceName": {"name":"mongodb"}, "Reconciliation": 15} trce: Aspire.Hosting.Dcp.ApplicationExecutor[0] Updating application model resource mongodb with Container resource mongodb-zrsgyxbk trce: Aspire.Hosting.Dcp.ApplicationExecutor[0] Updating application model resource admin with Executable resource admin-qynsqkjp fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0] the Executable cannot be run and will be marked as failed to start {"Executable": {"name":"admin-qynsqkjp"}, "Reconciliation": 7, "error": "no runner found for execution type 'IDE'"} fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0] the Executable cannot be run and will be marked as failed to start {"Executable": {"name":"api-zxnhmxrq"}, "Reconciliation": 8, "error": "no runner found for execution type 'IDE'"} trce: Aspire.Hosting.Dcp.ApplicationExecutor[0] Updating application model resource api with Executable resource api-zxnhmxrq trce: Aspire.Hosting.Dcp.ApplicationExecutor[0] Updating application model resource admin with Executable resource admin-qynsqkjp trce: Aspire.Hosting.Dcp.ApplicationExecutor[0]

System information: .NET SDK: Version: 9.0.100 Commit: 59db016f11 Workload version: 9.0.100-manifests.c6f19616 MSBuild version: 17.12.7+5b8665660

Runtime Environment: OS Name: Mac OS X OS Version: 15.1 OS Platform: Darwin RID: osx-arm64 Base Path: /usr/local/share/dotnet/sdk/9.0.100/ .NET workloads installed: [maui] Installation Source: SDK 9.0.100 Manifest Version: 9.0.0/9.0.100 Manifest Path: /usr/local/share/dotnet/sdk-manifests/9.0.100/microsoft.net.sdk.maui/9.0.0/WorkloadManifest.json Install Type: FileBased Configured to use loose manifests when installing new manifests. Host: Version: 9.0.0 Architecture: arm64 Commit: 9d5a6a9aa4 .NET SDKs installed: 9.0.100 [/usr/local/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Other architectures found: None Environment variables: Not set global.json file: Not found Additional context

image

Kevdome3000 commented 5 days ago

experiencing same issue

rafaelldi commented 5 days ago

Thanks for the report, I'm checking it.

rafaelldi commented 5 days ago

Unfortunately, I can't reproduce this (I've tried macOS and Windows versions). Could you please share your template solution? And maybe you can collect logs (please enable Aspire trace scenarios via Help | Diagnostic Tools | Choose Trace Scenarios | Aspire, reproduce the problem and collect logs via Help | Collect Logs)?

huberttrueselftrueme commented 5 days ago

I created this repo. https://github.com/huberttrueselftrueme/rideraspireerror Also i included .run file form rider with run configuration.

My thinking is maybe we are missing some permissions on macOS system to ran separate projects. ??

Last thing. Yesterday when I update rider to 2024.3 to newest Aspire.Plugin i saw form rider perspective was 1.6 version. After some digging I notice that on plugin repo page there is version 1.6.3 so i install it manually. I get the same error on both version of plugin.

rafaelldi commented 5 days ago

@huberttrueselftrueme Thanks! I've managed to reproduce it. Investigating.

rafaelldi commented 5 days ago

So, it should be fixed in the 1.6.4. release of the plugin.

Tielem commented 3 days ago

@rafaelldi The 1.6.4 version is not available (yet) via the marketplace. Is this expected?

When I look at the release commit, an error was triggered - see https://github.com/JetBrains/aspire-plugin/actions/runs/11839810448/job/32992682495

rafaelldi commented 1 day ago

@Tielem Hi! No, the release has been available since 14 November; you can check here: https://plugins.jetbrains.com/plugin/23289--net-aspire/versions/stable/633994.

The pipeline you mentioned is not related to the release one, it is just about updating the changelog file.