-
Notifications
You must be signed in to change notification settings - Fork 74
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
Parsing no longer seems to use vos files #1000
Comments
The only change that comes to mind is that now vscoq loads the _CoqProject closer to source files, while before id only loaded the same _CoqProject at the root of the repo. Do you happen to have multiple (and possibly broken) _CoqProject files? |
Yes, we have _CoqProject files for dependencies that are in submodules. They aren't broken but are insufficient. Only the top-level file should be used, in the root of the repository, and it has all the configuration needed for the dependencies. |
In fact I checked earlier and it is the root file |
This is not what CoqIDE does. Also, are you building with dune? (If so, support for that would solve your issue since we would ask dune the "right" flags) |
I am not using Coq master, 8.20 is working. |
However I don't think this is an issue about opening the wrong coqproject as https://github.com/tchajed/sys-verif-fa24-proofs/tree/main/src/sys_verif/program_proof/demos does not seem to have any _CoqProject files between it and the root. |
No, it is the second time I got his by this: vscoq/language-server/vscoqtop/lspManager.ml Lines 259 to 269 in 8333f37
But anyway, as you noticed, there is no other _CoqProject so it is loading the root one, so my diagnoses is wrong. |
Ah only the injections are taken from the local coqproject in older coq |
It seems vscoq just doesn't set Flags.load_vos_libraries |
Thanks gaetan, this is likely to be the culprit. |
So after working on #1020, I noticed that setting the flag works, but only if you open the root folder in vscode (the one containing the _CoqProject). If you open the file from a folder that is higher in the file hierarchy, the _CoqProject still seems to load (form the logs) but we go back to the errors mentioned above (namely |
Since this is a one line fix (disregarding the behaviour discussed above) I will include it in the next release. |
Do you get the error only if you did |
Well disregard my previous comment, it seems to work actually. Idk what I messed up in my earlier tests. |
I believe this used to work so it's a recent regression.
If you clone https://github.com/tchajed/sys-verif-fa24-proofs, run
git submodule update --init --recursive
andmake vos
, then open in VS Code (you can ignore the dev container prompt) and try openingsrc/sys_verif/program_proof/demos/hashmap_proof.v
it gives a bunch of parsing errors. Stepping through the file at this point is also very broken.Sorry I don't have a more minimal example. However, this whole repo is also a good stress test of VsCoq.
The text was updated successfully, but these errors were encountered: