Skip to content

String interpolation shows up as "path segment" in trace #16253

Description

@roberth

Describe the bug

See tests/functional/lang/eval-fail-toString-returns-non-coercible.err.exp (exposed in #16158)

This trace item should report "string interpolation" or some such:

… while evaluating a path segment
         at /pwd/lang/eval-fail-toString-returns-non-coercible.nix:2:2:
            1| # interpolation checks the return type of __toString
            2| "${{ __toString = self: null; }}"
             |  ^
            3|

Steps To Reproduce

see above

Expected behavior

see above

Metadata

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugerror-messagesConfusing messages and better diagnosticslanguageThe Nix expression language; parser, interpreter, primops, evaluation, etc

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions