-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Formatting unquotes interpolation #197
Comments
This language is cursed beyond repair, and I see no hope in fixing this without a proper formal specification of its string syntax and semantics. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/formatting-team-meeting-2024-06-25/47661/1 |
Bumping this higher, since it's a correctness bug and is kind of blocking for NixOS/nixpkgs#322537. @dasJ looked into it in todays meeting, I'll copy the notes here too:
|
More details from the debugging session: It's probably the parser. The example string can be minimized to
while nix parses it as
It probably dies because the first 4 characters ( |
Consider
foo.nix
:Formatting changes the semantics of this, turning it into an interpolation:
The text was updated successfully, but these errors were encountered: