-
-
Notifications
You must be signed in to change notification settings - Fork 17
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 #825 - Showing wrong errors' line numbers for .java files #937
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @e1dem! Thank you for your contribution, code looks good, testing now on macOS
@SableRaf Please take a look and merge if you understand what has changed! |
@Stefterv: So, if I understand correctly, the changes ensure that we don't need the workaround to zero index for PDE tabs because Java tabs live in their own files, and the line number offset is now handled correctly. Did I get that right? And does the fix still work when you have more than one Java tab? |
Yes it works with more than one Java tab Not sure what workaround you are referring to... But yes the line number offset is now handled correctly |
Hmm then I'm not sure I understand 100%. If this is a low stakes change then it may be ok but if you need a stricter review, we might need another pair of eyes on this. |
This is a low-stakes quality of life change |
@all-contributors please add @e1dem for code |
I've put up a pull request to add @e1dem! 🎉 |
Using PreprocSketch.mapJavaToSketch result for processing .java files is incorrect, as a sketch's combined source code file does not include code from .java tabs.
As far as I can see, there is a similar issue with showing variables usage, so I would suggest this solution as a temporary one.
Closes #825 (originally at benfry/processing4#825)