question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support dune builds

See original GitHub issue

When 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:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
garescommented, May 17, 2020

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 😉

1reaction
Blaisorbladecommented, Jan 5, 2022

Haven’t heard anything, and that MR seems about jump-to-definition only, which is unsupported altogether in vscoq.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found