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

Evaluating cons literal causes panic #178

Closed
Tracked by #164
weissjeffm opened this issue Nov 21, 2022 · 2 comments · Fixed by #236 or #245
Closed
Tracked by #164

Evaluating cons literal causes panic #178

weissjeffm opened this issue Nov 21, 2022 · 2 comments · Fixed by #236 or #245
Assignees
Labels
bug Something isn't working circuit Addressing this issue will affect the circuit.
Milestone

Comments

@weissjeffm
Copy link
Contributor

Trying to evaluate a cons pair like (1 . 1) causes panic.

~/workspace/lurk-rs $ lurkrs
Lurk REPL welcomes you.
> (1 . 1)
thread 'main' panicked at 'Can only extract car_cdr from Cons', /home/user/workspace/lurk-rs/src/store.rs:1943:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@porcuquine porcuquine added bug Something isn't working circuit Addressing this issue will affect the circuit. labels Dec 2, 2022
@jpeg07 jpeg07 mentioned this issue Dec 9, 2022
9 tasks
@weissjeffm weissjeffm self-assigned this Dec 15, 2022
@porcuquine porcuquine added this to the 1.0 Alpha milestone Jan 19, 2023
@huitseeker
Copy link
Member

isn't this solved by #201 / #224 ? /cc @emmorais @porcuquine

@porcuquine
Copy link
Collaborator

porcuquine commented Jan 31, 2023

Actually, no. There are two ways to fix the manifest problem, both of which need to be done.

The first is that a runtime error shouldn't cause the REPL to exit (with error). This is what #217 was going to fix. I'll make a PR fixing this in just a minute. [UPDATE: #236]

The second is that #201 doesn't actually cause evaluation of (1 . 1) to be an explicit error. It did revamp how those errors are handled, but didn't fix the case named in this issue. (It's very hard to tell from the diff whether it fixed any case, and no test was added. If we identify that some behavior was changed, we'll need to add a test and also ensure it's fixed in the circuit. I'm planning to work on the errors generally, and will include this in the set of case that need fixing in and out of circuit.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working circuit Addressing this issue will affect the circuit.
Projects
None yet
3 participants