danilolekovic/iode-d

New Error/Warning/Suggestion Design

Closed this issue · 4 comments

Iode handles errors pretty awfully now. I want to create a temporary solution for the JS backend with accurate indexing, suggestions, and total errors rather than breaking at one error. Elm does it extraordinarily well:

Elm errors

Elm is honestly a work of art.

Probably going to use a library (colourize) for making the console look pretty -- too tedious of a task to do myself right now. Perhaps in the future we won't use a library.

Here's what it looks like so far:

Screen Shot 2020-06-25 at 1 25 15 PM

Note: lines don't work because of the design of the compiler.... so gotta figure that one out.

More work on d6234fc.

Finished product:

Screen Shot 2020-06-26 at 10 22 38 PM