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
{{ message }}
Repository navigation
[Impeller] impellerc writes depfile paths unescaped, breaking consumers when a path contains a space #190968
P1High-priority issues at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team
Place a Flutter SDK (or any include on the shader search path) under a directory whose path contains a space, for example ~/Library/Application Support/sdks/flutter.
Compile any shader with impellerc --depfile=out.d ... whose includes resolve into that path (the bundled shader_lib does, since it lives next to the compiler inside the SDK).
Inspect out.d.
Expected results
Paths containing spaces are escaped per the depfile syntax the file claims to follow (\ , as in Ninja's depfile parser, which the implementation cites), so a conforming parser recovers the original paths.
Actual results
Compiler::CreateDepfileContents (impeller/compiler/compiler.cc) joins dependency paths with plain spaces and no escaping:
A parser splitting on whitespace recovers /Users/me/Library/Application and Support/sdks/.../constants.glsl, neither of which exists. Downstream, build hooks that feed these paths to the native-assets dependency tracker end up declaring nonexistent dependencies, which currently defeats hook caching entirely (the hook re-runs on every build, dart-lang/native#3541). The comment above the function links Ninja's depfile parser, which unescapes \ , \#, and \\; escaping those in the writer matches the cited grammar.
Application Support makes this common on macOS for any tool that manages SDK checkouts under the user's application-data directory.
P1High-priority issues at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team
Activity
b-luk commentedon Aug 18, 2026
Hi @wilyan09007. I see you have a draft PR for fixing this issue. Are you planning on getting this reviewed and merged?
wilyan09007 commentedon Aug 23, 2026
Yes, I just marked #190985 ready for review. Thanks for following up.
[ImpellerC] Escape spaces in depfile paths (flutter#196555)