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
Processing doesn't recognize methods of PApplet when the sketchfolder has a hyphen in it #610
Comments
|
Suggested fix: processing4/app/src/processing/app/Base.java Lines 1606 to 1615 in 1e1d196
|
|
This does not happen on OSX. But it does indeed happen on windows. |
|
@sampottinger Any quick thoughts? (Not your fault, just that you were in this code recently dealing with incorrect/superficial errors/warnings being reported.) This is another split between the live error checking and the generated code that's actually run. It looks like there's probably an assumption about class name being the same as the main tab name or the folder name, so this is showing errors when the sketch folder doesn't match up (i.e. it has spaces, hyphens, anything else that's now allowed if you un-check “Keep sketch name and main tab in sync”. |
|
Weird. Yeah it could be something with the edt edit generation. It's strange that it is OS specific though. I'll take a look. |
|
I'm seeing it on macOS, I don't think it's OS-specific. To reproduce:
(i.e. potentially nearby the other bit you had just fixed w/ error squiggles.) |
|
Here's an example: issue4 0610 hyphen trouble.zip |
|
Ah I must have misinterpreted an earlier comment. I'll try to take a look tomorrow! |
|
Actually I think I have a minute let me pop in now @benfry |
|
All set for 4.1.2 thanks to @sampottinger. |
Description
When the name of a sketch folder contains a hyphen, Processing doesn't recognize the methods of
PAppletlikedraw(),background(), etc.The sketch will compile and run without any problems anyway.
Steps to Reproduce
sketch.propertiesfile is created pointing to the main file (which can't have a hyphen in it, Processing will refuse to start in that case)PAppletanymore (draw(),background(), etc.)Your Environment
The text was updated successfully, but these errors were encountered: