Skip to content
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

Querying in REPL is broken in 1.4 (undue unbound identifier error) #1842

Closed
yannham opened this issue Mar 8, 2024 · 0 comments · Fixed by #1843
Closed

Querying in REPL is broken in 1.4 (undue unbound identifier error) #1842

yannham opened this issue Mar 8, 2024 · 0 comments · Fixed by #1843
Assignees

Comments

@yannham
Copy link
Member

yannham commented Mar 8, 2024

Describe the bug
It seems that since 1.4, trying to query a value introduced during a REPL session with a top-level let unduly raises an unbound identifier error, although the identifier is bound. Evaluation isn't impacted, it's just querying.

To Reproduce

Start a REPL session and:

nickel> let foo = 1
nickel> :query foo
error: unbound identifier `foo`
  ┌─ <repl-query>:1:1
  │
1 │ foo
  │ ^^^ this identifier is unbound

Expected behavior
I expect the query to succeed and just return nothing in this case.

Additional context
The cause has been found already and a fix is on the way. This issue is just to make it searchable and for the record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant