question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while opening Flutter Inspector

See original GitHub issue

What happened

Build Flutter Project and Try to open Flutter Inspector

Version information

IntelliJ IDEA 2021.3.3 • Flutter plugin io.flutter 67.0.3 • Dart plugin 213.7371

Error getting Flutter sdk information.

Exception

null

com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "dart" (in directory "C:\src\flutter\bin\cache\dart-sdk"): CreateProcess error=2, The system cannot find the file specified
	at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:364)
	at com.intellij.execution.process.OSProcessHandler.startProcess(OSProcessHandler.java:94)
	at com.intellij.execution.process.OSProcessHandler.<init>(OSProcessHandler.java:46)
	at com.intellij.execution.process.KillableProcessHandler.<init>(KillableProcessHandler.java:41)
	at com.intellij.execution.process.ColoredProcessHandler.<init>(ColoredProcessHandler.java:23)
	at io.flutter.utils.MostlySilentColoredProcessHandler.<init>(MostlySilentColoredProcessHandler.java:49)
	at io.flutter.utils.MostlySilentColoredProcessHandler.<init>(MostlySilentColoredProcessHandler.java:44)
	at io.flutter.run.daemon.DevToolsService.setUpWithDart(DevToolsService.java:141)
	at io.flutter.run.daemon.DevToolsService.lambda$startServer$2(DevToolsService.java:126)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:263)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.io.IOException: Cannot run program "dart" (in directory "C:\src\flutter\bin\cache\dart-sdk"): CreateProcess error=2, The system cannot find the file specified
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
	at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:447)
	at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:354)
	... 18 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
	at java.base/java.lang.ProcessImpl.create(Native Method)
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:487)
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154)
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
	... 21 more

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
RossHScommented, May 4, 2022

The problem for me was solved when I manually rolled back to the previous version of the plugin. Just install 66.0.1 version https://plugins.jetbrains.com/plugin/9212-flutter/versions/stable

2reactions
rishabh-hkcommented, May 11, 2022

Problem Solved by updating plugin. Version is 67.1.3. Thanks @helin24

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flutter Widget Inspector - Not displaying - Stack Overflow
Stop the emulator if you are running the app. Run flutter clean in your terminal; Run the app again. Open Command Palette in...
Read more >
Using the Flutter inspector
To debug a layout issue, run the app in debug mode and open the inspector by clicking the Flutter Inspector tab on the...
Read more >
How to debug layout issues with the Flutter Inspector - Medium
Layout problem 1: Overflow error · 1. Check the error message on the console. Overflow error on the Debug Console · 2. Open...
Read more >
Debugging Layout Issues Using the Widget Inspector
In this article, you'll see how layouts are constructed as well as learn about the Widget Inspector and how to use it to...
Read more >
I can't open Flutter Inspector in Android Studio - Super User
You have to run your app on an emulator or device to see the Flutter Inspector. ... I had the same problem, but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found