-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
FES message is broken if reserved words are used. #7168
Comments
Thanks so much for reporting this! I'm wondering if this might be related to/could be addressed through the p5.js library's FES? @Qianqianye |
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you! |
Thanks @shibomb and @raclim. I'm tagging @limzykenneth @davepagurek @sproutleaf, who are actively working on p5.js FES, to take a look at this. |
Looking into this but the main thing is that the correct behavior should be that the message is not displayed as |
I just realised that the global variable overwrite detection has made some incorrect assumptions that created quite a bit of false positive and false negatives (all classes' members are assumed to be global variables when it usually is not the case and some other global variables are exposed but not detected eg. The plan for @sproutleaf's FES work this will be reworked for 2.0. In the meantime, I will do a fix for 1.x to get things mostly working (not sure if I can make it work 100%). For the translation error on the editor, it probably is a different FES problem and I'll look into it as well. |
For the translation one there is a race condition between the init window @raclim For the p5.js web editor, monkey patching the For openprocessing, I'm not entirely sure why it is working but probably have to do with the way they patched the initialization of p5.js to work in a different way to fit how they display sketches. Both this and the other one above are quite complex to fix as things are very tangled in this part of the core code. If anyone wants to have a go do have a look and I'm happy to answer any questions based on my findings. I'll try to find a good solution in the meantime. |
Thanks @limzykenneth for diving into this! I'll also try to take a deeper look as well! |
p5.js version
1.9.4, 1.10.0
What is your operating system?
None
Web browser and version
Any browser (set non-English (e.g. Spanish, Japanese) to the top in language priority settings)
Actual Behavior
Set the browser's language preference setting to Japanese,
When executing code using reserved words, an error appears in the console, as if the FES message could not be generated.
Console output:
Additional information 1:
The problem does not occur if the browser's language preference is set to English language.
Console output:
Additional information 2:
Similar source code displays fine in OpenProcessing and local PC.
Console output:
Expected Behavior
Correct FES message as shown below (e.g. Japanese)
If output of the translated version is not possible, a normal message in English should be displayed.
Steps to reproduce
Steps:
let value = 0
in setup function.Snippet:
The text was updated successfully, but these errors were encountered: