Skip to content

Commit

Permalink
merlin: update tests
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Chávarri <javier.chavarri@gmail.com>
  • Loading branch information
jchavarri committed Mar 28, 2024
1 parent 3d3c97f commit 0c00e11
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
^^^^^^
Error: Library "fooppx" in _build/cross-environment/ppx is hidden
(unsatisfied 'enabled_if').
-> required by _build/cross-environment/lib/lib.pp.ml
-> required by _build/cross-environment/lib/.merlin-conf/lib-foolib
-> required by _build/cross-environment/lib/foolib.a
-> required by alias lib/all (context cross-environment)
-> required by alias default (context cross-environment)
[1]
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ If Merlin field is absent, default context is chosen

$ dune build

$ [ ! -d _build/cross/.merlin-conf ] && echo "No config in cross"
No config in cross
The rules are generated for all contexts, regardless which one is chosen

$ ls -a _build/cross/.merlin-conf
.
..
lib-foo

$ ls -a _build/default/.merlin-conf
.
..
lib-foo

But the default context is used by default

$ dune ocaml merlin dump-config "$PWD"
Foo: _build/default/foo
((STDLIB OPAM_PREFIX)
Expand Down Expand Up @@ -56,8 +62,10 @@ If Merlin field is present, this context is chosen
..
lib-foo

$ [ ! -d _build/default/.merlin-conf ] && echo "No config in default"
No config in default
$ ls -a _build/default/.merlin-conf
.
..
lib-foo

$ dune ocaml merlin dump-config "$PWD"
Foo: _build/cross/foo
Expand Down

0 comments on commit 0c00e11

Please sign in to comment.