-
Notifications
You must be signed in to change notification settings - Fork 90
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
support dune build system? (duplicate of #477) #573
Comments
You could query dune for locations and stuff, but I think the easiest for tools such as PG would be to use the upcoming |
Thx @ejgallego. IFAIU Just calling dune When reaching |
I've been using dune for personal projects for a while. One thing that it does break is jumping to the definition of an identifier: it goes to the copy of the |
What tuareg does for OCaml is indeed to special case this I understand and it removes the Dune already provides some kind of protocol and RPC to handle this stuff, and I understand OCaml emacs stuff is using it so I dunno what would be the most convenient way. |
auto compilation uses |
@ejgallego's remark here suggests that we should some day have an autocompilation based on (dune) build system. It would indeed make things easier from our side I suppose, but it would force our users to have such a build system from the start. I don't know if it would be good or bad. @hendriktews I think I remember that at some point the autocompilation could rely on the makefile if present. Is it still supported? Are you aware of the coq command |
Dune does indeed place I guess for dune + Coq, emacs could use the upcoming RPC support in dune to ask things about the build , IIUC RPC has been designed to be used from language servers, which do provide some extra functionality in terms of workspace management. Dune uses regular coqc / coqdep tho, and other than placing all objects and sources under _build, the compilation step is standard. Tricky parts that dune does are:
(*) ocaml/dune#3517 |
It's not clear yet, how to get the dependencies from dune, such that these files can be locked in Proof General.
That was in sequential foreground compilation. There it is still supported, without ancestor locking, of course.
Probably not, but it doesn't sound unfamiliar either. Where would it be useful? Here it doesn't seem to find libraries that have not been compiled yet. |
True, then it is of no use for us. |
Maybe this issue should be closed as a duplicate of #477 (comment) (with links both ways) — the latest plans are there. |
Indeed thanks. This is a duplicate of #477. |
Hi, this is an early warning, not yet a real bug, about the dune build system and its support in PG.
Coq dev team is about to switch to dune build system. Since dune is sometimes presented as the recommended build system for coq package and plugins, the number of users switching to it may increase.
Problem is: dune does not generate .vo{,s,k} in the same directories than sources but in a
_build_vo
directory.Edit: Morevover it actually make a complete copy of the source files in a
_build
directory too.@hendriktews for the record, I think the autocompilation feature will break if .vo are not in the same directory.
@cpitclaudel maybe some feature of company-coq depend on .vo location?
I have asked details about reproducing this compilation scheme by hand, will report here. We can use this thread to gather information about this problem. We may ask @ejgallego for details.
The text was updated successfully, but these errors were encountered: