Opened 10 years ago
Last modified 9 years ago
#498 new defect
coq-compile-before-require should allow non-source installations
Reported by: | coquser | Owned by: | David Aspinall |
---|---|---|---|
Priority: | major | Milestone: | PG-Emacs-4.3 |
Component: | 7:prover-coq | Keywords: | |
Cc: |
Description
The attached patch makes coq-compile-before-require
accept modules which have been installed (for example, system-wide) that do not offer source files. In effect, it will simply ignore whatever dependencies those module might have.
Change History (2)
comment:1 Changed 10 years ago by
comment:2 Changed 9 years ago by
Hi thanks for submitting.
Can you provide an example of the problem please? I can't reproduce the initial problem.
I tried the following:
I put one .v file in a lib directory and two others in a foo directory, together with a _CoqProject file for compiling in foo.
/tmp/pgtestcompile$ ls *
foo: _CoqProject main2.v main.v
lib: other.v
/tmp/pgtestcompile$ more lib/other.v
Definition y:nat := 0.
/tmp/pgtestcompile$ more foo/main.v
Require Import lib.other. Definition x := lib.other.y.
/tmp/pgtestcompile$ more foo/main2.v
Require Import foo.main.
/tmp/pgtestcompile/foo$ more foo/_CoqProject
-R /home/courtieu/tmp/pgtestcompile/lib lib -R . foo main.v main2.v
/tmp/pgtestcompile$ cd lib
/tmp/pgtestcompile/lib$ coqc -R . lib other.v
/tmp/pgtestcompile/lib$ rm other.v
/tmp/pgtestcompile/lib$ cd ../foo
/tmp/pgtestcompile/foo$ emacs main2.v
then pg succeeds in Recompiling main.v succeeds, without complaining about missing other.v.
I'm unable to attach files, so here is the literal diff: