[Nix#9988] incorrect error message on failed string antiquotation coercions #59

Open
opened 2024-03-16 06:44:42 +00:00 by lix-bot · 0 comments
Member

Upstream-Issue: NixOS/nix#9988

Describe the bug

interpolating something that isn't a string into a string causes nix to report the failed bit as a path segment

Steps To Reproduce

eval "a${1}":

error:
       … while evaluating a path segment

         at «string»:1:3:

            1| "a${1}"
             |   ^

       error: cannot coerce an integer to a string

nix-env --version output

nix-env (Nix) 2.18.1, but still present in master.

Priorities

Add 👍 to issues you find important.

Upstream-Issue: https://git.lix.systems/NixOS/nix/issues/9988 **Describe the bug** interpolating something that isn't a string into a string causes nix to report the failed bit as a path segment **Steps To Reproduce** eval `"a${1}"`: ``` error: … while evaluating a path segment at «string»:1:3: 1| "a${1}" | ^ error: cannot coerce an integer to a string ``` **`nix-env --version` output** `nix-env (Nix) 2.18.1`, but still present in master. **Priorities** Add :+1: to [issues you find important](https://github.com/NixOS/nix/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc).
lix-bot added the
bug
imported
labels 2024-03-16 06:44:42 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#59
No description provided.