We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've been playing around with p5.js in processing 3.3.6 on windows for a couple weeks now just following along with videos on youtube because I don't know much about coding, and the same problem keeps happening; I write a program, today it was just a simple clock, and it works just fine so I clicked save. now that I have the clock saved it wont run, this time it said it was a syntax error but there was no change in the code at all after I save it. To make sure that I didn't change anything by mistake I copied and pasted the exact same thing into a new sketch and it starts to work again. This happens every time I try to save anything and it's always a different error. It doesn't give me any options for selecting the file type when saving, so my question is, what am i doing that is messing everything up?
Answers
Don't save your sketch with a name that is the same as any of the classes the sketch uses.
For example, if you have a clock class:
do not save this as "Clock.pde".
Don't ask why. Just don't do it.
More details: https://forum.processing.org/two/discussion/8077/common-issues-with-sketch-names