-
Notifications
You must be signed in to change notification settings - Fork 1.1k
hdevtools: Multi-line error messages not formatted properly #1700
Comments
Vim's loclists don't support multiline messages. |
but trim unnecessary line white space above (empty lines) and left (commont indentation). This fixes vim-syntastic#1700.
Sadly, there are good reasons for removing newlines from error messages, and syntastic implicitly assumes that. Vim replaces newlines on input with ASCII To make it work, formatted copies of the error messages would need to be kept along with the "linearised" ones. Making those survive through all layers of syntastic would be possible, but not trivial. I don't see any reasonable way around that. |
How unfortunate :-( I’ll keep using my patch for a while and if I notice any breakage, and if not, I might be able to at least use the patch locally. |
The haskell compiler usually provides nice multi-line error messages, such as
Currenty, the
hdevtools
plugin collapses all whitespace usingin
syntax_checkers/haskell/hdevtools.vim
, which make such an error message hard to read.If I remove the
compressWhitespace
, I get the nicely formatted error message, with two quirks: It starts with an empty line (probably the\n
after the:
), and it is unnecessarily indented.I suggest to replace
compressWhitespace
by someunindent
which@lcd047, you last touched that line file.
The text was updated successfully, but these errors were encountered: