Fixing `Error when reading 'bin/main.dart': No such file or directory`
Sometimes when I try to launch my Flutter app, Visual Studio Code throws this at me:
bin/main.dart: Error: Error when reading 'bin/main.dart': No such file or directory
Exited (sigint)
The fix is to open ./vscode/launch.json
and to remove the Dart specific config that hardcodes the program path to bin/main.dart
.
Maybe deleting it will give me trouble down the line, when I try to run Dart programs? We'll see.