forked from ocaml/merlin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[B] ocaml#1803 Fix ignorance of STDLIB in .merlin
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The STDLIB directive in .merlin is respected | ||
$ cat > .merlin <<EOF | ||
> STDLIB /stdlib1 | ||
> EOF | ||
|
||
$ echo | $MERLIN single dump-configuration -filename test.ml 2> /dev/null | jq '.value.merlin.stdlib' | ||
"/stdlib1" | ||
|
||
$ rm .merlin | ||
|
||
The -ocamlib-path flag is respected | ||
$ echo | $MERLIN single dump-configuration -ocamllib-path /stdlib2 -filename test.ml 2> /dev/null | jq '.value.merlin.stdlib' | ||
"/stdlib2" | ||
|
||
The STDLIB directive in .merlin takes priority over -ocamllib-path | ||
$ cat > .merlin <<EOF | ||
> STDLIB /stdlib-from-.merlin | ||
> EOF | ||
|
||
$ echo | $MERLIN single dump-configuration -ocamllib-path /stdlib-from-flag -filename test.ml 2> /dev/null | jq '.value.merlin.stdlib' | ||
"/stdlib-from-.merlin" |