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.
Merge pull request ocaml#1715 from voodoos/501-backports
501 backports
- Loading branch information
Showing
15 changed files
with
189 additions
and
74 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
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
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
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 |
---|---|---|
|
@@ -67,7 +67,7 @@ | |
"reader": "reason" | ||
} | ||
], | ||
"cache_period": "5" | ||
"cache_lifespan": "5" | ||
} | ||
|
||
$ rm .merlin |
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,59 @@ | ||
$ cat >test.ml <<'EOF' | ||
> type foo = { | ||
> bar: X.t; | ||
> } | ||
> type foo2 = X.t | ||
> type foo3 = bar | ||
> EOF | ||
|
||
Merlin should not report unbound variable errors in that case since it is | ||
due to it's own type recovery. | ||
$ $MERLIN single errors -filename test.ml <test.ml | ||
{ | ||
"class": "return", | ||
"value": [ | ||
{ | ||
"start": { | ||
"line": 2, | ||
"col": 7 | ||
}, | ||
"end": { | ||
"line": 2, | ||
"col": 10 | ||
}, | ||
"type": "typer", | ||
"sub": [], | ||
"valid": true, | ||
"message": "Unbound module X" | ||
}, | ||
{ | ||
"start": { | ||
"line": 4, | ||
"col": 12 | ||
}, | ||
"end": { | ||
"line": 4, | ||
"col": 15 | ||
}, | ||
"type": "typer", | ||
"sub": [], | ||
"valid": true, | ||
"message": "Unbound module X" | ||
}, | ||
{ | ||
"start": { | ||
"line": 5, | ||
"col": 12 | ||
}, | ||
"end": { | ||
"line": 5, | ||
"col": 15 | ||
}, | ||
"type": "typer", | ||
"sub": [], | ||
"valid": true, | ||
"message": "Unbound type constructor bar" | ||
} | ||
], | ||
"notifications": [] | ||
} |
Oops, something went wrong.