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

Fix unbound identifier when querying in REPL #1843

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

yannham
Copy link
Member

@yannham yannham commented Mar 8, 2024

Closes #1842

Following a refactoring that landed in 1.4, the current environment of a REPL session wasn't taken into account when querying an expression. This means that any value introduced by a toplevel let during the session would evaluate fine but would raise an unbound identifier error if one tries to query it with :query some_id.

This commit fixes this by correctly propagating the environment in the subfunctions involved in querying.

Following a refactoring that landed in 1.4, the current environment of
a REPL session wasn't taken into account when querying an expression.
This mean that any value introduced by a toplevel let during the session
would evaluate fine but raise an unbound identifier error if one tries
to query it with `:query some_id`.

This commit fixes this by correctly propagating the environment in the
subfunctions involved in querying.
@yannham yannham requested review from jneem and vkleen March 8, 2024 15:46
@github-actions github-actions bot temporarily deployed to pull request March 8, 2024 15:49 Inactive
@yannham yannham added this pull request to the merge queue Mar 8, 2024
Merged via the queue into master with commit 2cd92bf Mar 8, 2024
5 checks passed
@yannham yannham deleted the fix/query-unbound-identifier branch March 8, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Querying in REPL is broken in 1.4 (undue unbound identifier error)
2 participants