You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This occurs because presently there's no way for the eclipse compiler to differentiate between: int(4.0) and PApplet.parseInt(4.0). All 'int()' are replaced with PApplet.parseInt() during the preprocessing stage, and at the moment, no book-keeping is done to keep track of which parseInt calls replaced int() calls.
Tldr; it's one of the corner cases for error checking. If this is a relatively common error? Then I can look into how to best handle it.
Ah, I see it's probably of an edge case but in theory it will pop up anytime there's an error at int(__). Do we have the same issues with errors around color()? My concern here is the use of PApplet which will cause confusion. So two ideas are:
Grab the token before PApplet.parseInt(). In this case it would then say Error on ",".
Just change it to say Unknown error (or something like that).
Picking up on #3253, the following code snippet:
produces:
I believe it should say:
(unless it can detect something more specific to the error itself.)
The text was updated successfully, but these errors were encountered: