request to clarify "illegal name" error #2973
Labels
error-messages
Confusing messages and better diagnostics
UX
The way in which users interact with Nix. Higher level than UI.
Scenario:
While playing in the REPL with the following snippet:
I was confused by the following:
I didn't understand why it was complaining about illegal names, and besides, I wasn't renaming any of the attributes!
So the specific problem here was that interpolating a path doesn't just interpolate the string, it imports the file into the store, and interpolates the store path. This all makes sense after having it explained to me, but it would have been nice if the error message clarified that this wasn't an evaluation error or somesuch.
I don't have any specific fixes in mind, but @grahamc has suggested something like the following as a starting point:
In my case this would have told me that I need to figure out why its trying to import a path, and I would have eventually figured out the interpolation behavior.
The text was updated successfully, but these errors were encountered: