Fix #825 - Showing wrong errors' line numbers for .java files#937
Fix #825 - Showing wrong errors' line numbers for .java files#937Stefterv merged 1 commit intoprocessing:mainfrom
Conversation
|
@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)