Skip to content

ocamldep bad dependancy #8427

@vicuna

Description

@vicuna

Original bug ID: 1996
Reporter: administrator
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:07:28Z)
Resolution: not fixable
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Related to: #4081 #4618 #7470

Bug description

Full_Name: Frederic Besson
Version: 3.06 3.07+2
OS: Windows
Submission from: tide135.microsoft.com (213.199.144.166)

ocamldep does not correctly handle module scopes (with open)
Suppose that

  • a.ml exists

  • b.ml contains the definitions
    module C = struct
    module A = struct let id = "b.ml" end
    end

    open C
    let _ = print_string A.id (* A.id refers to the inner module *)

However, ocamldep generates a dependancy with a.ml:
b.cmo: a.cmo
b.cmx: a.cmx

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions