ocamldep: order of -open options #7248
Closed
Comments
Comment author: antron Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original bug ID: 7248
Reporter: antron
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2017-09-24T15:32:52Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.03.0
Fixed in version: 4.04.0 +dev / +beta1 / +beta2
Category: tools (ocaml{lex,yacc,dep,debug,...})
Bug description
It seems ocamldep has the order of -open options backwards.
Steps to reproduce
namespaces_map.ml:
module Namespace =
struct
module Bar = Namespace__bar
module Foo = Namespace__foo
end
module Main = Main
foo.ml:
let a = Foo.a
$ ocamldep -modules -map namespaces_map.ml -open Namespaces_map -open Namespace foo.ml
foo.ml: Foo Namespace Namespaces_map
$ ocamldep -modules -map namespaces_map.ml -open Namespace -open Namespaces_map foo.ml
foo.ml: Namespace__foo Namespaces_map
I would expect the outputs to be interchanged. For comparison:
$ ocamlc -open Namespaces_map -open Namespace foo.ml
(ok)
$ ocamlc -open Namespace -open Namespaces_map foo.ml
File "command line", line 1:
Error: Unbound module Namespace
The text was updated successfully, but these errors were encountered: