How to declare a constant in Processing editor & p5.js? (reported issue)

Yep, that’s a great MCVE. It’s interesting that this works for you if you create a new project and paste this code in.

Yeah could be. I’m not sure what could cause this, but if I were you I would probably just copy my code over into a new project and move on.