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

unexpected warnings (produced by ocamldoc) #7607

Closed
vicuna opened this issue Aug 17, 2017 · 1 comment
Closed

unexpected warnings (produced by ocamldoc) #7607

vicuna opened this issue Aug 17, 2017 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Aug 17, 2017

Original bug ID: 7607
Reporter: kosik
Assigned to: @Octachron
Status: resolved (set by @Octachron on 2017-08-17T13:23:03Z)
Resolution: duplicate
Priority: normal
Severity: minor
Version: 4.05.0
Category: ocamldoc
Duplicate of: #7606

Bug description

If I have "a.mli" file with the following contents:

module D : B.C

and a "b.mli" file with the following contents:

include
sig
module type C = sig end
end

then both files compile fine:

ocamlfind c -bin-annot -o b.cmi b.mli
ocamlfind c -bin-annot -o a.cmi a.mli

However, when I try to use ocamldoc like this:

ocamlfind doc -html a.mli b.mli

I get the following warning:

Warning: Module type B.C not found
Warning: Module or module type ?? not found
Warning: Module type B.C not found

I am guessing that this is an unexpected behavior
(since both files are valid and compilable).

Steps to reproduce

tar xvzf 1.tar.gz
cd 1
make

File attachments

@vicuna
Copy link
Author

vicuna commented Aug 17, 2017

Comment author: @Octachron

This is essentially a duplicate of #7606, and a result of ocamldoc partial handling of include statement (and environment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants