Skip to content

Generate "_CoqProject" files for Coq theories #11752

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rlepigre
Copy link
Contributor

@rlepigre rlepigre commented May 4, 2025

This is a proof of concept for something @ejgallego and I discussed in the past as an alternative to using dune coq top for editors. We generate one _CoqProject file for each coq.theory stanza, which should allow good support across editors for stepping through Coq/Rocq source files.

This is incompatible with the following features, which I see as non-essential (i.e., could be removed IMO):

  • Having more than one coq.theory stanza in a given directory.
  • Using per-module flags in a coq.theory stanza.

If we want to push this through, we might want a way to disable generation of _CoqProject by supporting something like (project_file false) in the coq.theory stanza.

@rlepigre
Copy link
Contributor Author

@ejgallego any chance you could take a look at this?

@ejgallego ejgallego self-assigned this Jun 18, 2025
@ejgallego
Copy link
Collaborator

Yes @rlepigre , I'm almost at the point I will resume work on Dune Rocq; thanks for your patience.

@ejgallego
Copy link
Collaborator

Looks pretty good to me, I have some minor comments, but I suggest to add a changelog and documentation, as I can fix the comments myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants