hackclub / sprig

🍃 Learn to code by making games in a JavaScript web-based game editor.

Home Page:https://sprig.hackclub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

in errors: have line numbers which are highlighted

snoglobe opened this issue · comments

commented

add code blocks to sprig errors, which are syntax-highlighted and have line numbers.
image

Two things:

  1. The example given does show the proper information in the Sprig editor (i.e. Sprig does not show an inaccurate error in this situation)
  2. This issue should be broken down into pieces.
  • Extract exception name and error and display them separately, not in one text block
  • Parse out the line and column information and make the error message align with the specific line of code and the column position where the error occurs
  • Jump to line feature