Content-Length: 289494 | pFad | http://github.com/flutter/flutter/issues/126396

8C Flutter's `dart` wrapper suggests using `dartaotruntime`, which is confusingly not on path. · Issue #126396 · flutter/flutter · GitHub
Skip to content

Flutter's dart wrapper suggests using dartaotruntime, which is confusingly not on path. #126396

@dnfield

Description

@dnfield

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

No one assigned

    Labels

    P2Important issues not at the top of the work listdependency: dartDart team may need to help usdependency:dart-triagedTriaged by Dart teamteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/flutter/flutter/issues/126396

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy