flutter-intellij: Getting "Installing Devtools" message forever, and Flutter Inspector doesn't start
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:
[√] Flutter (Channel stable, 1.22.3, on Microsoft Windows [versao 10.0.18363.1139], locale pt-BR)
• Flutter version 1.22.3 at C:\flutter
• Framework revision 8874f21e79 (11 days ago), 2020-10-29 14:14:35 -0700
• Engine revision a1440ca392
• Dart version 2.10.3
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\m\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 50.0.1
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] Connected device (1 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• No issues found!
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 17
- Comments: 56 (22 by maintainers)
I was having this issue and running File > Invalid Caches / Restart from intellij fixed it for me.
Running DevTools in the Flutter Inspector window is an experiment and can be disabled in settings.
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.
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
I added the pub-cache location to my path and run the following set of commands which resolved the issue:
Seems the “flutter pub cache repair” helped in my case
I have the same issue on Android Studio, any updates?
@marcglasberg I can look into this. Does this occur every time after a restart? And does DevTools open for you from the run tab?
@helin24 Seems it’s the same issue. The navigate-to-code doesn’t work.
@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.
@AntonFesun it looks like
I think it’s worth adding that pub-cache location to your path and trying:
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.
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?
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: