You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flutter start doesn't give good error messages when it can't find main.dart #53
When I try to flutter start any of the example programs widgets, fitness or rendering I get an error like the following:
Downloading Sky Snapshot from the cloud, one moment please...
Downloading Sky Shell from the cloud, one moment please...
[1108/213053:FATAL:loader.cc(21)] Check failed: base::ReadFileToString(path, &source). /home/dmta/flutter/flutter/examples/rendering/./lib/main.dart
changed the title [-]Check failed: base::ReadFileToString(path, &source). [/-][+]flutter start doesn't give good error messages when it can't find main.dart[/+]on Nov 9, 2015
changed the title [-]flutter start doesn't give good error messages when it can't find main.dart[/-][+]`flutter start` doesn't give good error messages when it can't find main.dart[/+]on Nov 9, 2015
Yes, now that you say it, it makes sense. But reading the error message I originally thought that something must be wrong with the ReadFileToString function... I wouldn't have thought of a missing file...
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
abarth commentedon Nov 9, 2015
There isn't a "lib/main.dart" in the rendering examples. Instead, you need to use the
-toption to specify which one you want to run:Assuming that works for you, we should improve the error message you get so that it's obvious what's happening.
[-]Check failed: base::ReadFileToString(path, &source). [/-][+]flutter start doesn't give good error messages when it can't find main.dart[/+][-]flutter start doesn't give good error messages when it can't find main.dart[/-][+]`flutter start` doesn't give good error messages when it can't find main.dart[/+]DavidMihola commentedon Nov 9, 2015
Yes, now that you say it, it makes sense. But reading the error message I originally thought that something must be wrong with the
ReadFileToStringfunction... I wouldn't have thought of a missing file...abarth commentedon Nov 9, 2015
Yeah, we should improve the messages in two ways:
fluttercommand should check whether the target exists and print a useful message if it doesn't.Improve error handling in sky_snapshoter
Improve hit testing
Strip symbols of clang_x86 binaries (flutter#53)
github-actions commentedon Sep 7, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Improve error handling in sky_snapshoter