Closed zhangir-azerbayev closed 1 year ago
The second one is unsurprising. Importing twice is completely unsupported.
Do you have a backtrack for the first one?
Note that I've added
require mathlib from git
"https://github.com/leanprover-community/mathlib4.git"
to the lakefile.lean
and ran lake update
, lake clean
, and lake build
The second one is unsurprising. Importing twice is completely unsupported.
Do you have a backtrack for the first one?
If my understanding of the code is correct, the repl is supposed to create a new environment unless you explicitly refer to a previous environment using the "env" key.
Member
For the first one, the repl crashes without printing an error message. Is there some kind of verbose mode or debugging mode I can enter to get more information?
Yes, you understand correctly. But you can only create one "initial" environment. This is a hard limitation of Lean. And we should probably give a better error message in the repl..
Member
For the first one, the repl crashes without printing an error message. Is there some kind of verbose mode or debugging mode I can enter to get more information?
You can run the repl in a debugger (like gdb)
I can't reproduce the segfault. Your first example prints the following for me:
{"sorries": [], "messages": [], "env": 0}
I also can't reproduce the segfault. I have no idea what is different between when I ran it earlier today and now. I'm closing the issue. Thank you for helping out @gebner
I've managed to find two instances that make the REPL crash.
The following input causes a segfault, with nothing printed to stdout or stderr.
The following two inputs result in a
PANIC
.Which gives back