Skip to content

[hooks_runner] Can't run build_runner when profile folder has a space #2993

@h3x4d3c1m4l

Description

@h3x4d3c1m4l

When running build_runner (fvm dart run build_runner build --delete-conflicting-outputs) on my Windows 11 PC in my photobooth project, the following error gets printed:

Unexpected arguments after Dart entry point.

Usage: dart compile kernel [arguments]
[...] explanation of params which I left out because it is not relevant [...]

I did some digging and found out that it runs the following command:

"C:\Users\Some Name\fvm\versions\3.38.7\bin\cache\dart-sdk\bin\dart.exe"  compile kernel --packages=K:\Programmeren\diy-photobooth\.dart_tool\package_config.json --output=K:\Programmeren\diy-photobooth\.dart_tool\hooks_runner\objective_c\8e04c28b4433e6c12c82b92d4bcab349\hook.dill --depfile=K:\Programmeren\diy-photobooth\.dart_tool\hooks_runner\objective_c\8e04c28b4433e6c12c82b92d4bcab349\hook.dill.d "C:\Users\Some" Name\AppData\Local\Pub\Cache\hosted\pub.dev\objective_c-9.2.3\hook\build.dart

Note the username of the computer is Some Name, however it seems like this screws up the last file path in the command...

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestcontributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)package:hooks_runnerpackage:objective_c

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions