Support dune builds
See original GitHub issueWhen using dune, currently VsCoq won’t be able to find and load built .vo
files (ditto ProofGeneral/CoqIDE).
This is a known problem, but I’m filing this issue as documentation and to post the current workaround.
I’m using an issue as documentation on purpose, since this is still pretty hacky.
As confirmed by @ejgallego, the workaround is to modify _CoqProject as follows:
--Q theories D
+-Q _build/default/theories D
Beware this breaks tasks that use coq_makefile
, but I expect on *nix one can try processing _CoqProject
with sed -e 's!_build/default/!!
before passing it to coq_makefile.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Dune is a build
Dune is a build system for OCaml projects. Using it, you can build executables, libraries, run tests, and much more. Dune knows OCaml...
Read more >Command-Line Interface - Dune documentation - Read the Docs
The dune build and dune runtest commands support a -w (or --watch ) flag. When it's passed, Dune will perform the action as...
Read more >dune-build command man page - ocaml-dune - ManKier
Changes how the log of build results are displayed to the console between rebuilds while in --watch mode. Supported modes: preserve, clear-on-rebuild, clear-on- ......
Read more >Dune - A composable build system for OCaml. - GitHub
Dune itself is fast, has very little overhead, and supports parallel builds on all platforms. It has no system dependencies. OCaml is all...
Read more >Faster Incremental Builds with Dune 3 - Tarides
As a build system, Dune's main goal is to build targets. These targets can be either files (like an executable file) or “aliases,”...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for posting. I guess the plan is to invoke coq*top via dune, since only dune knows the actual profile (which may not be
default
). In the meanwhile this is better than nothing 😉Haven’t heard anything, and that MR seems about jump-to-definition only, which is unsupported altogether in vscoq.