You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Open in Android Studio" option doesn't work #1521
Is there anything listed in the developer console (click Help -> Show Developer Tools in VS Code) when you click? I can't see an obvious path in the code that would cause it to fail silently. If we can't find the folder we show an error message, and otherwise we just try to execute it.
Also, could you run flutter config --machine and paste the output here.
Maybe problem is that android-studio-dir is set to AS versions which doesn't have Flutter plugin?
That shouldn't stop it from launching though.. All we're doing here is grabbing android-studio-dir then appending bin/studio and executing it. If you run /home/audrius/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5320907/bin/studio from a terminal, does that work? If so, maybe it's failing somewhere else.
I could try and add some more logging and give you a build (unfortunately I don't have a Linux box, and it works fine on my MacBooks), or if you want to try and debug it, it might be quite simple:
Press F5, which will launch another copy of VS Code ("the dev extension host") running the from-source version of the extension
Open a Flutter project in that version, right-click on the Android folder and choose Open in Android Studio
This should hit the breakpoint back in the main VS Code window, and you could step through to see if you can understand what's happening (or post more info that might help me understand).
Otherwise, I should probably try and get a VM or something set up and see if I can repro there (in which case I'd be interested in knowing which distro you're using, and any instructions you think might be important to try and set things up similar to yours).
All we're doing here is grabbing android-studio-dir then appending bin/studio and executing it.
Oh. My AS instalation in bin directory contains studio.sh instead of studio. So calling /home/audrius/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5320907/bin/studio returns no such file or directory
Aha, I'll do some digging and find out if it should always be that way then. Windows and macOS are handled separately, so I think adding .sh should be easy if it's always that way on Linux. Thanks!
Activity
DanTup commentedon Mar 9, 2019
Is there anything listed in the developer console (click Help -> Show Developer Tools in VS Code) when you click? I can't see an obvious path in the code that would cause it to fail silently. If we can't find the folder we show an error message, and otherwise we just try to execute it.
Also, could you run
flutter config --machineand paste the output here.Thanks!
audkar commentedon Mar 9, 2019
No. Nothing printed after click.
Hmmm. Maybe problem is that
android-studio-diris set to AS versions which doesn't have Flutter plugin?DanTup commentedon Mar 9, 2019
That shouldn't stop it from launching though.. All we're doing here is grabbing
android-studio-dirthen appendingbin/studioand executing it. If you run/home/audrius/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5320907/bin/studiofrom a terminal, does that work? If so, maybe it's failing somewhere else.I could try and add some more logging and give you a build (unfortunately I don't have a Linux box, and it works fine on my MacBooks), or if you want to try and debug it, it might be quite simple:
This should hit the breakpoint back in the main VS Code window, and you could step through to see if you can understand what's happening (or post more info that might help me understand).
Otherwise, I should probably try and get a VM or something set up and see if I can repro there (in which case I'd be interested in knowing which distro you're using, and any instructions you think might be important to try and set things up similar to yours).
audkar commentedon Mar 9, 2019
Oh. My AS instalation in
bindirectory containsstudio.shinstead ofstudio. So calling/home/audrius/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5320907/bin/studioreturnsno such file or directoryDanTup commentedon Mar 9, 2019
Aha, I'll do some digging and find out if it should always be that way then. Windows and macOS are handled separately, so I think adding
.shshould be easy if it's always that way on Linux. Thanks!