=>flutter pub global list devtools 0.2.4 =>flutter pub global deactivate devtools Deactivated package devtools 0.2.4. =>flutter pub global activate devtools Downloading....... Precompiling executables... Precompiled devtools:devtools. Installed executable devtools. Activated devtools 0.2.4. =>flutter pub global run devtools ``` Unhandled exception: Invalid argument(s): A directory corresponding to fileSystemPath "...Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/devtools-0.2.4/build" could not be found #0 createStaticHandler (package:shelf_static/src/static_handler.dart:50:5) #1 defaultHandler (package:devtools_server/src/external_handlers.dart:41:23) <asynchronous suspension> #2 serveDevTools (package:devtools_server/src/server.dart:211:21) #3 serveDevToolsWithArgs (package:devtools_server/src/server.dart:149:10) #4 main (file:///Users/zaferyasinalemdaroglu/Desktop/Flutter/flutter/.pub-cache/hosted/pub.dartlang.org/devtools-0.2.4/bin/devtools.dart:9:3) #5 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:32) #6 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12) pub finished with exit code 255 ```
Activity
suztomo commentedon May 6, 2020
In my observation 0.2.3 has "build" directory while 0.2.4 does not:
Picking up devtools 0.2.3 solved my problem.
ZaferAlemdaroglu commentedon May 6, 2020
Thanks @suztomo
Be careful about that VS Code always uses pub for DevTools and not flutter.
For terminal fix;
For VS Code fix;
j0nscalet commentedon May 6, 2020
+1, that's the case for me as well. @suztomo suggestions resolved the issue for me.
devoncarew commentedon May 6, 2020
Thanks for the reports - you should be able to just use
pub global activate devtoolsnow (w/o having to downgrade the version).