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

Reproduce issue #1867 #1868

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": []
}
Loading