Skip to content

Commit

Permalink
Reproduce issue #1867
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Nov 27, 2024
1 parent ac951c6 commit be34518
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 6 deletions.
15 changes: 9 additions & 6 deletions tests/dune
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
(env (_
(binaries merlin-wrapper)
(env-vars
(MERLIN merlin-wrapper)
(OCAMLC ocamlc))))
(env
(_
(binaries merlin-wrapper)
(env-vars
(MERLIN merlin-wrapper)
(OCAMLC ocamlc)
(DUNE dune))))

(cram
(package merlin)
Expand All @@ -15,4 +17,5 @@

(cram
(applies_to with-ppx)
(deps (package ppxlib)))
(deps
(package ppxlib)))
28 changes: 28 additions & 0 deletions tests/test-dirs/issue1867.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
$ cat >dune-project <<'EOF'
> (lang dune 3.0)
> EOF

$ cat >dune <<'EOF'
> (executable (name foo))
> (executable (name foobar) (libraries yojson))
> EOF

$ touch foo.ml

$ cat >foobar.ml <<'EOF'
> let eq = Yojson.equal
> let () = Printf.printf "%b" @@ eq `Null `Null
> EOF

$ $DUNE build
$ $DUNE exec ./foobar.exe
true

FIXME: there appear to be an issue with configuration here
$ $MERLIN single locate -position 1:10 \
> -filename foobar.ml <foobar.ml
{
"class": "return",
"value": "Not in environment 'Yojson'",
"notifications": []
}

0 comments on commit be34518

Please sign in to comment.