-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dart2aot: fails to run from spaces in path name #37130
Comments
I guess we have no better label for these right now. |
Assigning to @cskau-g |
This is important for Sass as well; we'd like to transition our Chocolatey installation to AOT-compile the application at install time as a workaround for #28617, but if |
This issue should be resolved with dart2native having replaced dart2aot. |
Dart SDK Version: Dart VM version: 2.3.1
OS: Windows 10
I did a raw install (completely uninstalled v2.2) to get version 2.3 to try and use the dart2aot tool as shown here.
Running
dart bin/main.dart
output:as expected
Running
dart2aot bin/main.dart bin/main.dart.aot
gave the following error:As you'd expect, Dart is installed in the path
C:\Program Files\...
and the space was giving it a problem.I was able to solve the problem by editing
dart2aot.bat
file directly by including quotes around the file paths.Specifically, I changed:
to be:
After editing, both
main.dart.aot
andmain.dart.aot.dill
are generated.Then, after running
dartaotruntime bin/main.dart.aot
it works as expected, printing out the same as when running from thedart
command.The text was updated successfully, but these errors were encountered: