-
Notifications
You must be signed in to change notification settings - Fork 51
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
Always resolve files using Coq #684
Conversation
It makes sense, but the failure in HB seems to signals that this patch wants dune as a build system and dune needs to understand the extra sources. |
I'm not sure how this is specific to dune: independently of what build system you rely on, shouldn't the situation be the same? I mean, both |
After some investigation, it seems to me that the issue for HB is that the HB folder is not mapped. Adding |
ok, then there was an implicit |
Cool, thanks. I pushed what I have for HB here: https://github.com/rlepigre/hierarchy-builder/tree/new_elpi_resolver. |
Would you mind keeping a symlink to structures.v in the root for the sake of ci? |
Sure, I pushed a fix to my HB branch. |
Another issue I have identified, but am not sure how to fix, is with the |
I guess one approach would be to again rely on the Coq to resolve a directory path, given as first member of the path. |
That makes sense and also fix the ugly issue I have on proof general, since it runs coqtop from the directory where the .v file is, making Print behave differently depending your UI... |
This should now be fixed, but I had to make the file argument of |
@gares I confirmed that this MR makes it possible for us to use both |
no, I add a commit that thinkers with the nix configuration, and then remove it before merging. About HB, I think some fixes were merged in nix upstream, so math-comp/hierarchy-builder#444 should work. I'll try updating it. |
89d373e
to
1d802c5
Compare
I can merge it. I let you have a look at the minor points above and possibly add a line to the Changelog file |
This includes: - Duplicating [elpi2html.elpi] and [elpi-quoted_syntax.elpi] form elpi. - Always resolving file paths by treating the first component as a Coq directory path, and the rest as a relative path from its mapping. - Require a file path argument in the [Elpi Print] command, resolved in the same way.
Thanks @gares! I addressed the comments, and added a changelog entry. |
Thanks! |
Which was broken by LPCIC/coq-elpi#684
It was broken by LPCIC/coq-elpi#684.
Hello, coq-elpi/tests/test_link_order1.v Line 27 in 5aa6a28
I get this error message:
And if I interpret this: coq-elpi/apps/tc/examples/tutorial.v Line 58 in 5aa6a28
I get:
Am I missing something? |
I suspect the _CoqProject file contains 2 mappings for elpi.apps.tc.examples. |
In this proposal, the resolution is always done in the following way:
coq://
if present, for backward compatibility. I don't think it is useful anymore./
), and a remaining relative path.Example: if directory
theory/dir
is mapped to logical pathmy.project
, thenmy.project/rest/of/path.elpi
is mapped totheory/dir/rest_of_path.elpi
. You get the same result if you useaccumulate "my.project/rest/of/path".
in an elpi file (note the absence of a.elpi
extension in the string).Note: this also removes the
dune-workspace
file, which I don't think should be there.