-
Notifications
You must be signed in to change notification settings - Fork 88
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
(Some) vok compilation seems to ignore coq-compiler
#797
Comments
coq-compiler
coq-compiler
Thanks for the report! |
Before writing the above comment, I deduced a few things from your report. Can you please check the following deductions and tell me if they are right? You have different projects for which you set |
If my theory is right, the required change is a bit more invasive and will take some time. Until then I have the following suggestions:
|
Ah indeed. I didn't switch to a different buffer from a different project, but rather I switched to Maybe an easy fix (I don't know if it makes sense): is it possible to make
I suspect one needs to stay within the buffer until second stage finishes, not just started. I can see from
I didn't know about opam-switch-mode. I definitely will give it a try! |
Maybe an easy fix (I don't know if it makes sense): is it possible to
make `*coq-compile-response*` buffer (and other PG buffer without
corresponding physical files) inherit the `coqc-compiler` (and other
configurations as well) value from the buffer where `proof-shell-start`
is invoked?
Another approach used in some packages is to use a buffer local variable
set in `*coq-compile-response*` which contains the "origin" buffer
(e.g. `vc-parent-buffer`), so that we can go back to that buffer to know
which context should be applied.
|
@LukeXuan Right, you would have to stay in some buffer in the right project until vok compilation finishes. opam-switch-mode globally sets the opam switch for the emacs session by changing @monnier Yes, I need to record the original script buffer and set this in the sentinel and the timer function. I do this already for |
I use directory local variables to configure different opam switches for different projects I'm working on. It seems like regardless the content of
coq-compiler
, the delayed compilation of vok files always callscoqc
from exec-path/environment.An updated observation: most of the dependencies are compiled using the correct binary except for a few files...
The text was updated successfully, but these errors were encountered: