-
Notifications
You must be signed in to change notification settings - Fork 410
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
[coq] Fix coqlib file scanning. #7895
Conversation
612cc04
to
d976639
Compare
-I lib/coq/../coq-core/plugins/tutorial/p0 | ||
-I lib/coq/../coq-core/plugins/tutorial/p1 | ||
-I lib/coq/../coq-core/plugins/tutorial/p2 | ||
-I lib/coq/../coq-core/plugins/tutorial/p3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added this for consistency with what Coq does.
Coq also adds $opam_root/lib
but I'd rather avoid this for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yuck, but OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should make a bug upstream about this. For now it makes sense to keep the scanning behavior close.
83e2bce
to
a04f40b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scanning code was a little hard to read but I think I got the gist of it. We definitely need more tests, especially those with plugins.
-I lib/coq/../coq-core/plugins/tutorial/p0 | ||
-I lib/coq/../coq-core/plugins/tutorial/p1 | ||
-I lib/coq/../coq-core/plugins/tutorial/p2 | ||
-I lib/coq/../coq-core/plugins/tutorial/p3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yuck, but OK.
3.8.1 has been released, I'm removing it from the milestone. |
a04f40b
to
cddd197
Compare
Ok this should be ready. Can we add this to the 3.8.2 milestone ? |
@ejgallego Yes, it is already in the list of backports. The milestone won't make sense for PRs targeting the main branch. |
Installing $TESTCASE_ROOT/lib/coq/user-contrib/B/c.v | ||
Installing $TESTCASE_ROOT/lib/coq/user-contrib/B/c.vo | ||
|
||
Now we should see that A is not rebuilt, however coqdep is called, this seems to fail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is strange this is not working, we now correctly add the full list of .vo files to the deps for the A.v.d
file.
cddd197
to
5944f7c
Compare
The old code did indeed was nonsense, and among others was filtering all the files due to the `String.contains d '.'` condition. I wonder how the test for updating a file in user-contrib did pass tho, that seems pretty strange, as indeed we were not adding any .vo file to the .vo file list on the user-contrib deps, so this deserves more investigation. Fixes ocaml#7893 , thanks to Karl Palmskog for testing and detailed report. Signed-off-by: Emilio Jesus Gallego Arias <[email protected]>
5944f7c
to
caf1870
Compare
CHANGES: - Switch back to threaded console for all systems; fix unresponsive console on Windows (ocaml/dune#7906, @nojb) - Respect `-p` / `--only-packages` for `melange.emit` artifacts (ocaml/dune#7849, @anmonteiro) - Fix scanning of Coq installed files (@ejgallego, reported by @palmskog, ocaml/dune#7895 , fixes ocaml/dune#7893) - Fix RPC buffer corruption issues due to multi threading. This issue was only reproducible with large RPC payloads (ocaml/dune#7418) - Fix printing errors from excerpts whenever character offsets span multiple lines (ocaml/dune#7950, fixes ocaml/dune#7905, @rgrinberg)
The old code did indeed was nonsense, and among others was filtering all the files due to the
String.contains d '.'
condition.I wonder how the test for updating a file in user-contrib did pass tho, that seems pretty strange, as indeed we were not adding any .vo file to the .vo file list on the user-contrib deps, so this deserves more investigation.
Fixes #7893 , thanks to Karl Palmskog for testing and detailed report.
TODO:
Coq_lib.Legacy.vo
always returning the empty list.