Error: Error when reading 'bin/main.dart': The system cannot find the path specified.
i am using the windows 10 , the vs code shows the above results when i debug the code, one thing that i have used to terminal in the vs Code, when i hit the "flutter run" the emulators show the app but it did not show the hot reload and and other options, terminal show that it may take unsuspected long time
these are the output
rror: Error when reading 'bin/main.dart': The system cannot find the path specified. Ignoring error posting over WebSocket. Bad state: StreamSink is closed #0 _StreamSinkImpl.add (dart:_http/http_impl.dart:536:7) #1 _WebSocketImpl.add (dart:_http/websocket_impl.dart:1213:11) #2 WebSocketClient.post (dart:vmservice_io/server.dart:78:18) #3 _RootZone.runUnary (dart:async/zone.dart:1379:54) #4 _FutureListener.handleValue (dart:async/future_impl.dart:126:18) #5 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45) #6 Future._propagateToListeners (dart:async/future_impl.dart:668:32)
<!-- Thank you for using Flutter!
If you are looking for support, please check out our documentation or consider asking a question on Stack Overflow: * https://flutter.io/ * https://docs.flutter.io/ * https://stackoverflow.com/questions/tagged/flutter?sort=frequent If you have found a bug or if our documentation doesn't have an answer to what you're looking for, then fill our the template below. Please read our guide to filing a bug first: https://flutter.io/bug-reports/
<!-- Please tell us exactly how to reproduce the problem you are running into.
Please attach a small application (ideally just one main.dart file) that reproduces the problem. You could use https://gist.github.com/ for this. If the problem is with your application's rendering, then please attach a screenshot and explain what the problem is.
Run your application with
flutter run --verbose and attach all the
log output below between the lines with the backticks. If there is an
exception, please see if the error message includes enough information
to explain how to solve the issue.
flutter analyze and attach any output of that command below.
If there are any analysis errors, try resolving them before filing this issue.
<!-- Finally, paste the output of running
flutter doctor -v here. -->
The solution is to delete .vscode folder inside your project
thanks bro.it was really helpfull @YuriiChornyi