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

“ocamldep -all” does not express dependencies on MLI files. #7593

Closed
vicuna opened this issue Jul 21, 2017 · 6 comments
Closed

“ocamldep -all” does not express dependencies on MLI files. #7593

vicuna opened this issue Jul 21, 2017 · 6 comments

Comments

@vicuna
Copy link

vicuna commented Jul 21, 2017

Original bug ID: 7593
Reporter: @elfring
Status: closed (set by @xavierleroy on 2017-07-21T15:26:11Z)
Resolution: not a bug
Priority: low
Severity: trivial
Version: 4.03.0
Category: tools (ocaml{lex,yacc,dep,debug,...})

Bug description

I wonder why dependencies are incompletely exported for module interface source files.

Steps to reproduce

I have tried the following command out.

elfring@Sonne:~/Projekte/OCaml/OCamlbuild/lokal> ocamldep -all -one-line src/*.ml* > ../dep-all1.txt

Additional information

Development status of the dependency generator for OCaml
https://sympa.inria.fr/sympa/arc/caml-list/2017-07/msg00087.html

@vicuna
Copy link
Author

vicuna commented Jul 21, 2017

Comment author: @xavierleroy

"I wonder why" is not a problem report. Please keep those questions for caml-list, as you have already been instructed to do several times.

@vicuna
Copy link
Author

vicuna commented Jul 21, 2017

Comment author: @elfring

Please fix the data set which is written by the command “ocamldep -all”.

@elfring
Copy link

elfring commented Apr 15, 2019

Will other users care for the affected software components any more?

@damiendoligez
Copy link
Member

Sample output from the reporter's command line:

bar.cmo : bar.cmi bar.ml
bar.cmx bar.o : bar.cmi bar.ml
bar.cmi :
foo.cmo : bar.cmi foo.cmi foo.ml
foo.cmx foo.o : bar.cmi bar.cmx foo.cmi foo.ml
foo.cmi :

Note that it does say that bar.cmo depends on bar.ml but not that bar.cmi depends on bar.mli. Is there a reason for this discrepancy? Do we want to fix it?

@damiendoligez damiendoligez reopened this Aug 2, 2019
@rixed
Copy link
Contributor

rixed commented Aug 4, 2019

I guess the suggestion is that ocamldep should also output "bar.cmi : bar.mli" when it sees that a bar.mli file is present, and maybe "bar.cmi : bar.ml" when only bar.ml is present?

It might be confusing when/if one generates the mli file out of the ml file though (ocamlc -i).

Other than that, I can't understand why it's been designed this way; which is not to say I do not believe there is/was a valid reason.

@github-actions
Copy link

github-actions bot commented Aug 5, 2020

This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.

@github-actions github-actions bot added the Stale label Aug 5, 2020
@github-actions github-actions bot closed this as completed Sep 4, 2020
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

4 participants