JaneySprings / DotNet.Meteor

A VSCode extension that can run and debug .NET apps (Xamarin, MAUI, Avalonia)
https://marketplace.visualstudio.com/items?itemName=nromanov.dotnet-meteor
MIT License
269 stars 10 forks source link

Can't select a target device/emulator from the opened panel on Mac M1 #76

Closed hhyyy9 closed 9 months ago

hhyyy9 commented 9 months ago

Is this because M1 chip? it shows 'fetching devices' all the time, but show up nothing.

iShot_2024-01-28_06 58 47
JaneySprings commented 9 months ago

Hi! It's strange, because your MacBook-Pro is selected in the status bar (which means fetching was successful).

If you are using Android, something may have happened to adb (I noticed a couple of times that adb daemon may freeze). Try to execute the command in the terminal: pkill -f adb.

anyway, look at the log (/Users/YOU/.vscode/extensions/nromanov.dotnet-meteor-4.0.6-darwin-arm64/extension/bin/Workspace/logs), maybe there is an error there

hhyyy9 commented 9 months ago

Hi! It's strange, because your MacBook-Pro is selected in the status bar (which means fetching was successful).

If you are using Android, something may have happened to adb (I noticed a couple of times that adb daemon may freeze). Try to execute the command in the terminal: pkill -f adb.

anyway, look at the log (/Users/YOU/.vscode/extensions/nromanov.dotnet-meteor-4.0.6-darwin-arm64/extension/bin/Workspace/logs), maybe there is an error there

both iOS and Android simulators can't be fetched, I got this error:

2024-01-28 07:11:24.2185|System.Exception: at DeviceProvider.GetDevices at Program.AllDevices at Program.Main /Users/runner/work/1/s/src/DotNet.Meteor.Workspace/DeviceProvider.cs[20]

JaneySprings commented 9 months ago

Can you try to execute it manually with: /Users/YOU/.vscode/extensions/nromanov.dotnet-meteor-4.0.6-darwin-arm64/extension/bin/Workspace/DotNet.Meteor.Workspace --all-devices ?

hhyyy9 commented 9 months ago

I just fixed ! I try to use 'Cmd + Shift + P', then selected '.NET MAUI: Configure Android' and '.NET MAUI: Configure Apple', and reset the Android SDK path, finally restart vscode, it works.

JaneySprings commented 9 months ago

I do not recommend using .NET MAUI and .NET Meteor at the same time. The behavior may be unstable.

hhyyy9 commented 9 months ago

I do not recommend using .NET MAUI and .NET Meteor at the same time. The behavior may be unstable.

Thanks for you recommendation, I found that .NET MAUI is unstable certainly

hhyyy9 commented 9 months ago

I do not recommend using .NET MAUI and .NET Meteor at the same time. The behavior may be unstable.

I got a new issue, can't create new MAUI file using solution explore

JaneySprings commented 9 months ago

can't create new MAUI file using solution explore

I think you should write an issue to the C# DevKit extension repository