Skip to content
New issue

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

Support for multi-line errors #1

Open
liquidev opened this issue Dec 11, 2020 · 0 comments
Open

Support for multi-line errors #1

liquidev opened this issue Dec 11, 2020 · 0 comments

Comments

@liquidev
Copy link
Owner

liquidev commented Dec 11, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant