lintplus icon indicating copy to clipboard operation
lintplus copied to clipboard

Support for multi-line errors

Open liquidev opened this issue 4 years ago • 0 comments

Nim sometimes outputs errors that span multiple lines, eg. type mismatches. Example:

/home/daknus/Coding/Nim/tsuki/src/tsuki/vm.nim(271, 4) Error: type mismatch: got <State>
but expected one of:
proc interpret(s: State; chunk: Chunk; procName = "<main chunk>";
               initialStack: seq[Value] = @[])
  first type mismatch at position: 2
  missing parameter: chunk

expression: interpret(s)

The default interpreter shouldn't have to support this

This could be implemented as maybe a keyboard shortcut to show the whole error in an autocomplete-like popup, appearing below the error message.

liquidev avatar Dec 11 '20 17:12 liquidev