-
Notifications
You must be signed in to change notification settings - Fork 10
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
p5.js sketch breaks when I save it #18
Comments
I was able to replicate this error, as well as find a partial solution. I was guessing the error was occurring due to some kind of syntax checking that p5js-mode was using. On a hunch, I changed the Poking around the source of p5js-mode, I'm wondering if it is the |
Should be fixed for the next release (1.1) along with #20. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
If I start up a new sketch in p5.js mode and paste in this code, it works fine. I click run and it shows the output in my browser window with no errors (correctly showing a square spinning on the Y axis)
However, if I then save this file, it no longer works when I try to run it. I get an error message:
SyntaxError: Expected ; but found angle
And this generally highlights the first line in the code.
I am using Processing IDE 3.3.6. Windows 10. Firefox for output.
Processing environment.
![image](https://user-images.githubusercontent.com/30215910/34268954-419e542c-e648-11e7-846f-64328df1968c.png)
p5.js mode:
![image](https://user-images.githubusercontent.com/30215910/34268956-45964f30-e648-11e7-8d9e-9873b1156e3a.png)
error message:
![image](https://user-images.githubusercontent.com/30215910/34268950-3c8e70d4-e648-11e7-9ed5-db9a94e65cb9.png)
index.html:
![image](https://user-images.githubusercontent.com/30215910/34268948-38e41272-e648-11e7-98a0-60c6c0772536.png)
The text was updated successfully, but these errors were encountered: