We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the source code:
let f x: string = x + 1
Flycheck highlights the current symbol, starting at the column position reported by merlin:
Region highlighting is controlled by flycheck-highlighting-mode. The default is symbols, but sexps has the same result in this example.
flycheck-highlighting-mode
symbols
sexps
M-x merlin-toggle-view-errors highlights the exact expression instead. This is really helpful when dealing with errors in large functions.
M-x merlin-toggle-view-errors
Is it possible to get this precise region highlighting with flycheck-ocaml?
The text was updated successfully, but these errors were encountered:
FWIW, you can see the end position in the Merlin protocol:
$ cat ~/scratch/type_error.ml let f x: string = x + 1 $ cat ~/scratch/type_error.ml | ~/.opam/4.05.0/bin/ocamlmerlin single errors | jq . { "class": "return", "value": [ { "start": { "line": 1, "col": 18 }, "end": { "line": 1, "col": 23 }, "type": "typer", "sub": [], "valid": true, "message": "This expression has type int but an expression was expected of type\n string" } ], "notifications": [], "timing": { "total": 1.9509999999999987, "query": 0.13099999999999845, "reader": 0.2289999999999992, "ppx": 0.06199999999999939, "typer": 1.5250000000000021, "error": 0.0039999999999995595 } }
Sorry, something went wrong.
I believe flycheck/flycheck#1400 would fix this.
No branches or pull requests
Given the source code:
Flycheck highlights the current symbol, starting at the column position reported by merlin:
Region highlighting is controlled by
flycheck-highlighting-mode
. The default issymbols
, butsexps
has the same result in this example.M-x merlin-toggle-view-errors
highlights the exact expression instead. This is really helpful when dealing with errors in large functions.Is it possible to get this precise region highlighting with flycheck-ocaml?
The text was updated successfully, but these errors were encountered: