-
Notifications
You must be signed in to change notification settings - Fork 646
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
CoqIDE: Need a better way to load secondary modules #15763
Comments
I really don't understand why you have to do this kind of manipulations. When I have to edit fiat-crypto, I just pass the |
For the record, @ppedrot is suggesting you do |
This should even be automatic if your options are set correctly... |
I seem to recall it only working like that if I start coqide in _build_ci/fiat_crypto. |
Neither Also, the extra Since the opam installation path includes the Coq version number, the |
It's the responsibility of the package to provide proper install scripts. In the case where there is an opam package, they install the relevant files in the Coq path so you don't have to do anything. If this doesn't work, it's a bug of the opam installer. But I suspect you're using a weird setup because I've never had this kind of issues with the fiat-crypto scripts. cc @JasonGross just in case.
If you have to explicitly pass the path to bignums, you're definitely doing something very wrong. Once again, this folder should be living in your Coq installation.
Could you provide an overview of your setup? I am very confused. |
When you edit a file, CoqIDE finds the associated _CoqProject and passes those options to |
This is only in the _CoqProject file for |
My regular setup is to run out of my Coq source tree. Separately, I'm looking at how a Coq platform installation is set up. In part, my goal is to understand the details well enough so that I can add something useful to the documentation (explanation of config behavior/concepts with some best practice suggestions). |
Are you sure fiat-crypto is an opam package? I don't find in the opam available packages list (if I'm looking at it correctly). How do you install it with opam or otherwise? |
_build_ci doesn't use opam, why are you talking about opam? |
As I said
|
The list of Opam packages for Coq is available at https://coq.inria.fr/opam/www/ If you filter for
But note that, if the packages are only available in |
Thanks, that should covered better in the doc. The install for fiat-crypto failed because the
|
This is a standard Opam package, so there is no reason for it to appear in the index of Coq libraries. It appears in the index of Opam packages: https://opam.ocaml.org/packages/conf-jq/
Sure. This is especially true of |
Note that there are discussions about including fiat-crypto in the Platform (and therefore in the released opam packages): coq/platform#178 |
Fiat-crypto has a main package named
Crypto
and depends on another package namedRewriter
. If I use these command-line settings to run CoqIDE, I can loadToFancyWithCasts.v
and step through it in the debugger.Without these lines, I get this failure:
Command line parameters are not very friendly. CoqIDE should have a better way to handle this case, such as putting them in a file akin to
_CoqProject
that the user could select from within CoqIDE. In effect there would be multiple_CoqProject
files.It would be helpful if the
_CoqProject
for fiat-crypto could specify this relationship. The challenge is that the pathname forRewriter
is system dependent. A comment noting the relationship would be a good development practice. I suppose we could try to define universal invariant package identifiers (e.g. the DNS name of the package's repository plus an optional pathname therein) and have each compiled package include that name. That's more complex.Currently, when you open a source file in CoqIDE, it adds paths in its
_CoqProject
file to the loadpath for that buffer. Excerpt:The text was updated successfully, but these errors were encountered: