abella-prover / abella

An interactive theorem prover based on lambda-tree syntax
https://abella-prover.org/
GNU General Public License v3.0
89 stars 18 forks source link

Abella hangs after 'abella -o test.out -c test.thc' #84

Closed lambdacalculator closed 7 years ago

lambdacalculator commented 7 years ago

(No input file given in command line.) Ctrl-C has no effect.

chaudhuri commented 7 years ago

Did you try Ctrl-D? Normally Ctrl-C is trapped in interactive mode (which is what happens if you have no input file).

lambdacalculator commented 7 years ago

OK, Ctrl-D ends the program. A couple of follow-ups, though:

So, yes, my fault -- but I wonder if some safeguards might be put into place to prevent others from accidentally falling into the same trap. Some possibilities:

chaudhuri commented 7 years ago

The whole compilation mechanism will probably be overhauled/replaced soon once we get the reasoning level module system in a more usable form. Meanwhile I'll add a warning to stderr as you suggest for this combination of flags.

lambdacalculator commented 5 years ago

This is closed, but I just wanted to ask about the status. After not compiling with -c for a while, I accidentally clobbered my thm file again with abella -c myfile.thm, not remembering that -c requires an output filename. Above, I suggested that the -c option should not require a filename and always produce a .thc file, which is anyway what is expected by import. After losing another thm file, it seemed like a good time to bring this up again. (Again, I acknowledge that this was my oversight, but it should be harder to clobber files accidentally, IMHO.)

chaudhuri commented 5 years ago

My recommendation would be to let Abella take care of compiling for you. Abella automatically compiles any .thm files it needs when it sees an Import statement. There is very little reason for you to be running -c yourself nowadays.