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
If you don't have a dart on PATH, this will fail. I'm surprised we hadn't seen this before, but maybe it's uncommon to not have somedart on PATH (I'm not sure if this seems expected though, or if you expect a dart to be on your PATH at this point?).
The fix is probably to add a CliCommand.dart which uses the Dart SDK from inside the Flutter SDK (that CliCommand.flutter uses).
Activity
DanTup commentedon Jan 22, 2024
At a quick glance, I suspect the issue is trying to run
dartin some places in this file without a full path:https://github.com/flutter/devtools/blob/46e016aa1328adebf5127bd77e2c6275c468cf0f/tool/lib/commands/serve.dart#L149
If you don't have a
darton PATH, this will fail. I'm surprised we hadn't seen this before, but maybe it's uncommon to not have somedartonPATH(I'm not sure if this seems expected though, or if you expect adartto be on yourPATHat this point?).The fix is probably to add a
CliCommand.dartwhich uses the Dart SDK from inside the Flutter SDK (thatCliCommand.flutteruses).