-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Closed as not planned
Closed as not planned
Copy link
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listdependency: dartDart team may need to help usDart team may need to help usdependency:dart-triagedTriaged by Dart teamTriaged by Dart teamteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Steps:
echo "void main() { print('hello'); }" > main.dart
dart compile aot-snapshot main.dart
dart run main.aot
Output:
main.aot is an AOT snapshot and should be run with 'dartaotruntime'
dartaotruntime
is in $FLUTTER_ROOT/bin/cache/dart-sdk/bin/dartaotruntime
, which is not on path. I'm not sure what the right fix here is - I can think of three options sorted in no particular order:
Change the Flutter:
- Add
dartaotruntime
to the path in$FLUTTER_ROOT/bin
.
Change Dart:
- Update the message so that it prints the absolute path of
dartaotruntime
(doesn't seem great). - Update the Dart CLI so that it can do this for you, e.g. just shelling out to dartaotruntime.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listdependency: dartDart team may need to help usDart team may need to help usdependency:dart-triagedTriaged by Dart teamTriaged by Dart teamteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team