-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Incorrect error line highlight when error is inside folded code #8457
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
Labels
Comments
I remember we had a similar issue in the past and the solution was to unfold all the code before highlighting the line. It was surely related with rSyntaxTextArea not behaving properly but I have to check in the past issues to make sure it's not a regression |
Found it, it was not totally related but probably the fix is the same |
facchinm
added a commit
to facchinm/Arduino
that referenced
this issue
Jan 28, 2019
Fixes arduino#8457 For some reason, getCurrentTab().getTextArea().getFoldManager().ensureOffsetNotInClosedFold(line) doesn't work here; there no documentation on what offset is. Also, getFoldForLine(line) returns null even if the line is folded (bug in rsyntaxtextarea?)
facchinm
added a commit
to facchinm/Arduino
that referenced
this issue
Mar 7, 2019
Fixes arduino#8457 For some reason, getCurrentTab().getTextArea().getFoldManager().ensureOffsetNotInClosedFold(line) doesn't work here; there no documentation on what offset is. Also, getFoldForLine(line) returns null even if the line is folded (bug in rsyntaxtextarea?)
facchinm
added a commit
that referenced
this issue
Mar 7, 2019
Fixes #8457 For some reason, getCurrentTab().getTextArea().getFoldManager().ensureOffsetNotInClosedFold(line) doesn't work here; there no documentation on what offset is. Also, getFoldForLine(line) returns null even if the line is folded (bug in rsyntaxtextarea?)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using Arduino IDE 1.8.9 Hourly Build 2019/01/24 07:33 and Arduino IDE 1.9.0-beta build 100 with Windows 10 64 bit
The first line of the sketch will be highlighted in pink, incorrectly indicating the error is there.
Suggested improvements on this behavior:
I have a suspicion this is a limitation of rSyntaxTextArea rather than the Arduino IDE, but I'm not certain of it, so I thought it was worth reporting here.
Originally reported: http://forum.arduino.cc/index.php?topic=443558.msg4036044#msg4036044
The text was updated successfully, but these errors were encountered: