Closed marcglasberg closed 3 years ago
Ok, I managed to make it work after reinstalling. Closing this.
I spoke too soon. The problem started again. It seems to fix if I uninstall and reinstall again, but after some time it's back.
Reopening this.
@jacob314
I was having this issue and running File > Invalid Caches / Restart from intellij fixed it for me.
@marcglasberg Could you give us a little more detail? Prior to
Getting "Installing Devtools" message, and Flutter Inspector doesn't start.
What did you do?
What did you do?
Ran the program and clicked the IDE button named "Flutter Inspector".
When I do that, it opens the inspector. It doesn't launch DevTools. Can you be more specific? Screen shots might help.
When I do that, it opens the inspector. It doesn't launch DevTools. Can you be more specific? Screen shots might help.
I think in the newest version inspector is DevTools. This issue seems to be somewhat connected to https://github.com/flutter/flutter-intellij/issues/5019 I think the new DevTools uses the web implementation inside the intellij inspector tab which causes some issues.
also might be connected to #5052 #5056
@stevemessick
@marcglasberg I can look into this. Does this occur every time after a restart? And does DevTools open for you from the run tab?
I have the same issue on Android Studio, any updates?
@AntonFesun I'm unable to reproduce this on my own system, so any details you have on these questions may be helpful:
I also have the issue in Android Studio.
@helin24 1) Yes, it persist also after invalidate cache + restart 2) nope just writing that devtools are installing and "The DevTools build is in progress" 3) Here is the link for logs https://drive.google.com/file/d/1DnSNicEyIKBBsPpa7R6xwxZNf2b4QZ0D/view?usp=sharing P.S. My OS - Windows. Thanks for your response.
Without additional information we're unfortunately not sure how to resolve this issue. We're going to close this bug for now, but please don't hesitate to comment on the bug if you have any more information for us; we're happy to reopen. Thanks for your contribution!
Sorry, that tag should have been removed automatically. Thanks for the additional info @AntonFesun. Are you able to to start DevTools from your command line? For windows this would involve running:
flutter.bat pub global activate devtools
flutter.bat pub global run devtools
Sorry, that tag should have been removed automatically. Thanks for the additional info @AntonFesun. Are you able to to start DevTools from your command line? For windows this would involve running:
flutter.bat pub global activate devtools flutter.bat pub global run devtools
Devtools runs fine, including from the run tab in the IDE, the "installing devtools" seems to be related to the way it is started in the inspector tab. Wasn't there a major change to that tab functionality lately?
Devtools runs fine, including from the run tab in the IDE, the "installing devtools" seems to be related to the way it is started in the inspector tab. Wasn't there a major change to that tab functionality lately?
@fourman-alex Correct, we recently started embedding devtools in the inspector tab! It seems there may be two separate issues here, with some of you having problems with the panel specifically and some not being able to open devtools from IntelliJ at all.
Would you mind enabling verbose logging and attaching your logs as well?
Devtools runs fine, including from the run tab in the IDE, the "installing devtools" seems to be related to the way it is started in the inspector tab. Wasn't there a major change to that tab functionality lately?
@fourman-alex Correct, we recently started embedding devtools in the inspector tab! It seems there may be two separate issues here, with some of you having problems with the panel specifically and some not being able to open devtools from IntelliJ at all.
Would you mind enabling verbose logging and attaching your logs as well?
- Verbose logging is in Preferences -> Languages & frameworks -> Flutter -> General
- Help -> Show log in finder(/explorer?)
Yes I'll add my logs at ~10 AM GMT
flutter.bat pub global run devtools
Hi @helin24 , first command`s output is Installed executable devtools. Warning: Executable "devtools" runs "bin\devtools.dart", which was not found in devtools. Warning: Pub installs executables into C:\src\flutter.pub-cache\bin, which is not on your path. You can fix that by adding that directory to your system's "Path" environment variable. A web search for "configure windows path" will show you how. Activated devtools 0.9.3+4. And second: Could not find bin\devtools.dart in package devtools. pub finished with exit code 66
Attached logs
Something I noticed about the scenario to replicate the issue. If I start intellij with the inspector tab closed, run the app on an android emulator and try to open the tab, more often than not it will get stuck on "installing dev tools" but when I restart and open the inspector tab first and then run my app it seems to work OK.
@AntonFesun it looks like
Warning: Executable "devtools" runs "bin\devtools.dart", which was not found in devtools. Warning: Pub installs executables into C:\src\flutter.pub-cache\bin, which is not on your path. You can fix that by adding that directory to your system's "Path" environment variable.
I think it's worth adding that pub-cache location to your path and trying:
flutter.bat pub global deactivate devtools
flutter.bat pub global activate devtools
flutter.bat pub global run devtools
If that doesn't work, we can open an issue on https://github.com/flutter/devtools; someone there will know know more about this than me.
Something I noticed about the scenario to replicate the issue. If I start intellij with the inspector tab closed, run the app on an android emulator and try to open the tab, more often than not it will get stuck on "installing dev tools" but when I restart and open the inspector tab first and then run my app it seems to work OK.
@fourman-alex thanks for the logs. I don't see anything unusual there, but I'll see if I can reproduce the issue with the tab closed. It sounds like there could be a timeout somewhere.
@fourman-alex would you be able to try this version of the plugin with extra logging and send me your logs again? flutter-intellij.zip
To install, go to Setting -> Plugins -> (settings icon) -> Install plugin from disk, then restart.
@fourman-alex would you be able to try this version of the plugin with extra logging and send me your logs again? flutter-intellij.zip
To install, go to Setting -> Plugins -> (settings icon) -> Install plugin from disk, then restart.
I get Plugin 'Flutter' is incompatible with this installation
when trying to install the plugin. I'm on linux if that makes a difference.
Android Studio 4.1.1
Build #AI-201.8743.12.41.6953283, built on November 5, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-124-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry: ide.new.welcome.screen.force=true, external.system.auto.import.disabled=true
Non-Bundled Plugins: com.thoughtworks.gauge, org.intellij.plugins.markdown, org.jetbrains.kotlin, mobi.hsz.idea.gitignore, Dart, io.flutter, com.localizely.flutter-intl
Current Desktop: ubuntu:GNOME
@fourman-alex I'm testing the same version of Android Studio on Linux and checked that I could download that file and install it, so I wonder if there are machine-specific settings that could make it incompatible. You could try uninstalling the existing Flutter plugin first and trying again, but I don't see why that would make a difference. Sorry I don't have a better suggestion for this. I'm going to try running an app on this system a few more times and see if I can reproduce the freeze.
@fourman-alex I'm testing the same version of Android Studio on Linux and checked that I could download that file and install it, so I wonder if there are machine-specific settings that could make it incompatible. You could try uninstalling the existing Flutter plugin first and trying again, but I don't see why that would make a difference. Sorry I don't have a better suggestion for this. I'm going to try running an app on this system a few more times and see if I can reproduce the freeze.
Tried uninstalling first and it seemed to work this time. Here is the log while succesfully reproducing the bug.
@fourman-alex thanks for the log! I added a bit more logging to the problem area and was able to reproduce the issue once on my machine - I think there's sometimes a delay in the VM service URL becoming available. This is in a part I don't understand well, but I expect I'll find an answer once everyone is back after Thanksgiving. Since you've been able to reproduce the issue more consistently, I may post another plugin zip for you to test later on.
I have the same issue on Android Studio, any updates?
I made a fix that should hopefully address this problem. I expect there will be a new dev channel release on Sunday that will include the change, so those of you who have been seeing this more consistently may want to set that up and see if it resolves the issue (and let me know if not). Instructions to set up the dev channel: https://github.com/flutter/flutter-intellij/wiki/Dev-Channel
Running DevTools in the Flutter Inspector window is an experiment and can be disabled in settings.
I made a fix that should hopefully address this problem. I expect there will be a new dev channel release on Sunday that will include the change, so those of you who have been seeing this more consistently may want to set that up and see if it resolves the issue (and let me know if not). Instructions to set up the dev channel: https://github.com/flutter/flutter-intellij/wiki/Dev-Channel
That didnt resolved my issue, I am still stucked at Installing Devtools
@IlPicasso sorry, I should have maybe sent my message later. This won't be released until the next dev version, which should be released on Sunday. Until that time I'd recommend disabling this feature (Preferences -> Languages & Frameworks -> Flutter -> Experiments, "Enable embedding devtools.. ").
@helin24 Don't you think experimental features should be disabled by default?
@helin24 Don't you think experimental features should be disabled by default?
True, we're actually in the process of moving this out of experiments. This feature was disabled by default in previous releases and enabled by default in v51. We didn't get reports of this problem while it was disabled by default, unfortunately.
@helin24 Even when it does open, clicking in the tree doesn't show the declaration point in the code. Question: Was this supposed to be working? Being able to inspect some widget to find its declaration in the code is the most useful feature of the inspector. Frankly, I don't think this should be moved out of experiments while the "go to code" feature is not working as it should.
@marcglasberg is your issue similar to this one? https://github.com/flutter/flutter-intellij/issues/4929
We had fixed this for v51, but it sounds like you're seeing a regression or a different issue. Could you either post to that issue or open a new one (if yours is different?)
@helin24 Seems it's the same issue. The navigate-to-code doesn't work.
@marcglasberg requesting a few more details on this here: https://github.com/flutter/flutter-intellij/issues/4929#issuecomment-742703994
I also experience same issue. I think it's because of embedded devtools? Try opening the DevTools via Run tab. It will show install devtools... then once done.. Flutter inspector tab will work again.
@helin24 Hey, this is not fixed, is it?
It was closed by a bot: no-response bot closed this on Nov 23
How can we reopen this?
@marcglasberg I closed this after we fixed a threading problem, and since then we've made some other changes to DevTools management that should fix this issue. These changes are only available on the dev channel plugin though (haven't had a major release yet) - have you tried reproducing the problem there? (https://github.com/flutter/flutter-intellij/wiki/Dev-Channel) That version also includes more logging to help us debug further if necessary.
I've the same problem on Android Studio. I've tried everything to find someone with a fix. Total crickets. It's a shame really it's one of the better reasons to use the A studio over Vs code. Anyway. Time fixes everything. If I could I would, but I can't so I won't.
@Whipstitch-webwork see my comment above (https://github.com/flutter/flutter-intellij/issues/5032#issuecomment-752152640)
I had the same problem. I solved thanks to the @GijsOnGitHub's hint. Language & Frameworks -> Flutter -> DIsable "Enable embedding DevTools in the Flutter inspector tool window". Click on Apply and restart Android Studio
I added the pub-cache location to my path and run the following set of commands which resolved the issue:
flutter pub global deactivate devtools
flutter pub cache repair
flutter pub global activate devtools
flutter pub global run devtools
Seems the "flutter pub cache repair" helped in my case
@helin24 do you know when this fix will be available on the stable channel?
Also, after my Win10 computer wakes up from a hibernation I get this error:
Hot reload/restart still works, but not the DevTools.
This computer belongs to my employer, a bank, so there are multiple layers of networking security. This could be related, but it doesn't appear to affect hot reload though, just the DevTools after a hibernation. Do you think this is another issue or is it related to this one?
@feinstein we usually do a release at the end of each month (but skipped December due to the holidays), so it'll likely be in a couple of weeks.
Interesting hibernation issue - this is a separate problem. DevTools is starting in this case and connects to the VM service initially, but after hibernation it seems this connection breaks. I think this is probably an issue we would have to address on the DevTools side, as I'm not sure why this would be unique to the embedded browser in IntelliJ. You can check by opening DevTools in your normal browser as well (there should be an 'Open DevTools' button in the run console) and seeing if the same thing occurs after hibernation.
I was having this issue and running File > Invalid Caches / Restart from intellij fixed it for me.
Worked for me too! Thanks Mate ;)
Getting "Installing Devtools" message, and Flutter Inspector doesn't start. The plugin shows:
Flutter 51.0.3
I was using an older plugin because of this: https://github.com/flutter/flutter-intellij/issues/4952
Then I upgraded to plugin 51.0.3 and now it just doesn't work. What should I do?
My flutter doctor -v: