-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Keyword Syntax highlighting still outdated #3163
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
I see that there's a bunch of PRs that re-run the generate script and update with the latest version. This is good but it's only a temporary solution. It brings us up to date with right now but does not consider future changes. (Also, all 3 PRs only update the
I have some thoughts here but not a concrete solution in mind.
I'm now realizing an interesting thought. If the user is editing an old sketch it might have a lower version of p5.js. We're going to show highlighting for these new functions, but those aren't actually available in the p5 version that they are using. That's a whole rabbit hole so let's ignore that for now. We would need to know what version a particular function was introduced, but that is not in the source data file which we are using. |
Just like we don't commit
Curious note, but the non-minified versions of p5.js actually contain the documentation within the script itself. There is probably no "nice" way to load it from there (chances are, doing it "safely" requires loading the script in an iframe; but we shouldn't be doing even that before the preview button is pressed), but it's definitely an interesting idea to explore. |
@lindapaiste I think we can move the p5 version to the |
Is this Issue fixed? |
The original issue of missing a few keywords was fixed, but the systemic problem of keywords not being updated automatically persists. |
@bojidar-bg I can solve the problem |
Is this Issue fixed? |
Hi guys , Can someone help me in solving this issue , I know how to permanently solve the version issue but i need help regarding the updation of keyword.js and hinter.js . |
p5.js version
1.9.4
What is your operating system?
Linux
Web browser and version
Firefox 126.0
Actual Behavior
A few new p5.js function like
beginClip
are not being highlighted.https://github.com/processing/p5.js-web-editor/blob/develop/client/utils/p5-keywords.js was last updated c. #1873 and hasn't been touched since.
Expected Behavior
All p5.js functions are highlighted correctly.
client/utils/p5-keywords.js
is automatically generated when building the p5 editor and never drifts out of sync, or is at least kept in sync whenever the editor switches to the latest p5 version.Steps to reproduce
Steps:
beginClip()
beginClip
is not bolded like the other built-in functions.The text was updated successfully, but these errors were encountered: