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

Is there a way to highlight the line in case of a syntax error? #199

Open
gennad opened this issue Apr 16, 2019 · 1 comment
Open

Is there a way to highlight the line in case of a syntax error? #199

gennad opened this issue Apr 16, 2019 · 1 comment

Comments

@gennad
Copy link
Contributor

gennad commented Apr 16, 2019

I am thinking of the C-e check function that would try to compile the code and highlight the errors in the code if there are any.

@gennad gennad changed the title Is there a way to highlight the line in case there is a syntax error? Is there a way to highlight the line in case of a syntax error? Apr 16, 2019
@dschuyler
Copy link
Collaborator

Nope, but I'd like that.

This is another case where I'd like to consider a new-ish UI/UX.

For example, wdyt of having annotation in the document.
So for a file like this

  1 impor os
  2 
  3 def cat():
  4    return "meow"

An annotation would be added after line 1 and before line 2, explaining the error.

  1 impor os
SyntaxError: invalid syntax
  2 
  3 def cat():
  4    return "meow"

The text SyntaxError: invalid syntax wouldn't really be part of the document. The cursor would skip it when going up and down (a cursor on line 1 would jump to line 2 when down arrow was pressed).

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

No branches or pull requests

2 participants