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

How to use with a _CoqProject #81

Open
JoJoDeveloping opened this issue May 25, 2022 · 1 comment
Open

How to use with a _CoqProject #81

JoJoDeveloping opened this issue May 25, 2022 · 1 comment

Comments

@JoJoDeveloping
Copy link

Hello,

when I naively try to execute find . -name '*.v' -exec alectryon.py --frontend coqdoc --backend webpage {} \; in a project using a _CoqProject, I get errors like this:

./Instance/Coq/Dist.v:(7:16)-(7:28): (ERROR/3) Coq raised an exception:
     > Cannot find a physical path bound to logical path matching suffix Category.
   The offending chunk is delimited by >>>…<<< below:
     > Require Import Coq.Sets.Ensembles.
     >
     > Require Import >>>Category.Lib<<<.
     > Require Import Category.Lib.Same_set.
     > Require Export Category.Theory.Functor.
   Results past this point may be unreliable.

The _CoqProject starts with -R . Category.

Is there a general way for generating alectryon files for a project like this? I have wondered about this a few times now, but never really figured it out.

Thanks!

@ana-borges
Copy link

This is not really an answer, but it should work in a pinch. You can pass -R . Category to Alectryon, as well as several different files. So:

alectryon -R . Category --frontend coqdoc --backend webpage *.v

should accomplish what you want. Still, it won't take into consideration other things in your _CoqProject, such as any annotations disabling warnings, for example.

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

2 participants