-
Notifications
You must be signed in to change notification settings - Fork 17
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
F* over TRAMP crashes #102
Comments
🤔 this is not looking good. |
Sure. From a slightly smaller file, I'm getting the following:
|
Thanks. It looks like F* is receiving a bad JSON message, although what fstar-mode sends seems fine. Could you patch F* to print back the JSON string before exiting? The change to make is in |
This is weird, even by adding this (both on my local and remote F* versions), I still only get "Json parsing failed." without any more information |
Are you using the OCaml build or the F# build? |
I'm not sure, I'm simply running |
Btw, I have a simple workaround for this (running emacs with ssh -X instead of over TRAMP), so there is no need to spend a huge amount of time debugging :) |
Hmm. This shouldn't matter, in fact :/ The debug log should show exactly which F* is run; can you make sure that it's the recompiled one? |
Sorry, I missed your last message before posting mine. The workaround is great, but I'd like to get to the bottom of this nonetheless :) |
I think you were right, it was using the recompiled version, but apparently the OCaml one for which the F# change wasn't propagated. Below is the output for the file available here: https://github.com/project-everest/hacl-star/blob/8e739b1cd3159148da3e43b0eea3b128e24702d5/vale/code/arch/x64/interop/Cpuid_stdcalls.fst It seems that the string given is partial, and stops in the middle of line 62. Do I need to modify a setting to remove a length limit on data sent over TRAMP?
|
How odd. Thanks for investigating. |
I'm using |
Can you try with |
I ran into the same issue. I applied the patch you suggested to the compiler and the query is clearly truncated after a few thousands characters. |
The files are truncated after ~4300 characters. |
Sounds like the same issue as above: are you using sshx or ssh? TTYs truncate inputs at 4096 characters. |
Sorry for the delayed response: I'm using sshx because using ssh causes a timeout. It's the first time I use sshx and I don't really know much about it, how is it that TTY limitations apply here? |
I'm trying to run F* over TRAMP, and get the following error:
F*: subprocess exited.
error in process filter: fstar-subp--process-response: Invalid state: Received orphan response "Json parsing failed." to query "?".
Table of continuations was #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8 data ("1" [cl-struct-fstar-continuation "1" ignore (23654 55548 302255 44000)] "2" [cl-struct-fstar-continuation "2" #[128 "\302\300\303\301�""\207" [fstar-subp--overlay-continuation (#<overlay from 1 to 16 in Interop.fst</sshx:[email protected]:>>) apply append] 6 "
(fn &rest ARGS2)"] (23654 55548 303432 11000)]))
My fstar-mode version is 20190129.603
The text was updated successfully, but these errors were encountered: