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

fix: Missing runtime error markers #1907

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paxcut
Copy link
Contributor

@paxcut paxcut commented Sep 17, 2024

Problem description

Moving error markers to be underwaved created s couple of errors:

  • Markers that were 1 char long and located at the end of the line didn't show on text editor.
  • Markers that had zero length or no stack trace didn't show on text editor.

Implementation description

  • The first error was caused by an off by one error in the column index.
  • There was no implementation for errors that had no location or zero length. Now errors with no location will be shown at the beginning of the line where they occur. Errors with zero length will be marked from their location to the end of the line, therefore, errors with no stack trace will be marked from the beginning to the end of the line.

Moving error markers to be underwaved created s couple of errors:
Markers that were 1 char long and located at the end of the line didn't show on text editor.
Markers that had zero length or no stack trace didn't show on text editor.

The first error was caused by an off by one error in the column index.
There was no implementation for errors that had no location or zero length. Now errors with no location will be shown at the beginning of the line where they occur. Errors with zero length will be marked from their location to the end of the line, therefore errors with no stack trace will be marked from the beginning to the end of the line.
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

Successfully merging this pull request may close these issues.

1 participant