Skip to content
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

_CoqProject file for editors #8

Open
ju-sh opened this issue Jan 9, 2024 · 7 comments
Open

_CoqProject file for editors #8

ju-sh opened this issue Jan 9, 2024 · 7 comments

Comments

@ju-sh
Copy link

ju-sh commented Jan 9, 2024

How would a _CoqProject file using this plugin look like?

I couldn't make it work.

@palmskog
Copy link
Member

Since Dune is the build system of Coq, the point of this repo is to highlight using Dune to build plugins. To my knowledge, _CoqProject/coq_makefile can't be made to work in the same way without serious hacks. So we don't plan to support _CoqProject/make builds here.

@palmskog palmskog closed this as not planned Won't fix, can't repro, duplicate, stale Jan 22, 2024
@ejgallego
Copy link
Collaborator

Indeed while it is true that we cannot support _CoqProject files reliably, many users do depend on them to be able to run their plugins with PG / CoqIDE / Vscoq.

So maybe we could add a _CoqProject file, with the above disclaimers, but having the right config for the example so Coq Editors do work, something like:

# Disclaimer about _CoqProject and dune
-R theories MyPlugin

@palmskog
Copy link
Member

OK, I'm fine with adding a _CoqProject only for editor purposes.

@ejgallego
Copy link
Collaborator

Ok, then let's reopen this. It is sad we have to do it, but it has become quite of a FAQ.

@ejgallego ejgallego reopened this Jan 22, 2024
@palmskog palmskog changed the title _CoqProject file _CoqProject file for editors Jan 22, 2024
@palmskog
Copy link
Member

Fine by me to reopen, but the original issue was sort of an X/Y problem since you can have coq_makefile builds without _CoqProject.

@ejgallego
Copy link
Collaborator

Yes, I fully agree. Thanks for the clarification, while we know the difference, it is important we are quite explicit for people that may not fully understand the different roles on the build ecosystem.

@StamesJames
Copy link

I had the same issue for using the template in vscode with vscoq.
A _CoqProject file with:
-R ./_build/default/theories/ MyPlugin
-I ./_build/default/src/
in the root folder or adding:
"vscoq.args": [
"-R" ,"./_build/default/theories/", "MyPlugin",
"-I" ,"./_build/default/src/"
]
to the settings.json did the trick.

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

No branches or pull requests

4 participants