You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PVector's setHeading() isn't highlighted, or in the reference. #472
The method setHeading isn't highlighted like other methods in PVector. It also isn't in the reference (But this may be an issue for processing-docs?).
Expected Behavior
setHeading appears with that same blue colour.
Current Behavior
Steps to Reproduce
Paste the following code:
void setup() {
PVector p = new PVector(5, 5);
p.setMag(2);
p.setHeading(3);
}
Observe the highlighting
Your Environment
Processing version: 4.0b7, latest from git
Operating System and OS version: Windows 10
Other information:
Possible Causes / Solutions
I've tried adding annotations as there aren't currently any, like:
/**
*
* Set the heading of this vector to the value used for the <b>len</b> parameter.
*
*
* @webref pvector:method
* @usage web_application
* @param angle the new heading for this vector
* @webBrief Set the heading of the vector
*/
public PVector setHeading(float angle) {
float m = mag();
x = (float) (m * Math.cos(angle));
y = (float) (m * Math.sin(angle));
return this;
}
I've had some more time to look at it, I see that the highlighting comes from keywords.txt, which gets updated periodically. So just adding this doclet be sufficient?
From the notice on top of keywords.txt, it seems it recommends to modifiy this file, which however does not have any entry for functions. So the question comes back to this:
I've had some more time to look at it, I see that the highlighting comes from keywords.txt, which gets updated periodically. So just adding this doclet be sufficient?
Also, is there a way to manually run the updater for keywords.txt, for testing?
Hey @SushantBansal-tech. Thanks so much for your enthusiasm! Just a quick note: this issue was already assigned, and another contributor had shown clear interest too. To keep things fair (and organized) please only work on issues you've officially been assigned.
We typically aim to respond to incoming issues and pull requests within 1-2 weeks, though we might not always catch them all! If there hasn't been any engagement with your submission, feel free to add a comment if the 2 week timeframe has passed.
We get notified of new PRs by GitHub and there’s no need to ask for a review right away. Thanks for your understanding and patience! 💙
@SableRaf@Stefterv seems like this is more an issue for processing-website: it's missing the json file for setHeading. The keywords.txt here is actually generated there, so makes more sense to open a PR there to add the missing entry. Perhaps this issue should be migrated there?
Also, would be nice to know if keywords.txt is manually copied over here per-release, or some automation is going on. I can adjust accordingly.
@babaissarkar Great spelunking, could you start with creating a writeup on how this actually works? As @SableRaf and I are also a bit fuzzy on the details
@babaissarkar Great spelunking, could you start with creating a writeup on how this actually works? As @SableRaf and I are also a bit fuzzy on the details
Sure, where should I write it? (Haven't got all details yet, still investigating.)
After running the keywords.txt update routine, seems like there are more missing keywords than just setHeading() (Diff attached)
@Stefterv@SableRaf what to do? should I just pick the entry for setHeading() or add all of them? (Note: I might have to add more jsons than the one for setHeading() based on whether they exist already in the website repo or not.)
@babaissarkar Thanks for doing the research! Yes, in that case I think it makes sense to fix the overarching issue even though it goes beyond the scope of the initial bug report.
Activity
processing-bot commentedon Apr 22, 2022
Created by: ExpandingS
I've had some more time to look at it, I see that the highlighting comes from keywords.txt, which gets updated periodically. So just adding this doclet be sufficient?
babaissarkar commentedon Mar 21, 2025
From the notice on top of
keywords.txt, it seems it recommends to modifiy this file, which however does not have any entry for functions. So the question comes back to this:Also, is there a way to manually run the updater for
keywords.txt, for testing?@Stefterv any idea?
babaissarkar commentedon Mar 21, 2025
Adding it manually to
keywords.txtdoes make it work:SushantBansal-tech commentedon Mar 24, 2025
@SableRaf I have raise the PR for this #472
And now I am working on the previous issue as well that has assigned to me .
SushantBansal-tech commentedon Mar 24, 2025
@SableRaf Can you please review my PR
SableRaf commentedon Mar 24, 2025
Hey @SushantBansal-tech. Thanks so much for your enthusiasm! Just a quick note: this issue was already assigned, and another contributor had shown clear interest too. To keep things fair (and organized) please only work on issues you've officially been assigned.
Also, as mentioned in our GSoC Guidelines:
We get notified of new PRs by GitHub and there’s no need to ask for a review right away. Thanks for your understanding and patience! 💙
babaissarkar commentedon Mar 25, 2025
@SableRaf @Stefterv seems like this is more an issue for
processing-website: it's missing the json file forsetHeading. Thekeywords.txthere is actually generated there, so makes more sense to open a PR there to add the missing entry. Perhaps this issue should be migrated there?Also, would be nice to know if
keywords.txtis manually copied over here per-release, or some automation is going on. I can adjust accordingly.Stefterv commentedon Mar 25, 2025
@babaissarkar Great spelunking, could you start with creating a writeup on how this actually works? As @SableRaf and I are also a bit fuzzy on the details
babaissarkar commentedon Mar 25, 2025
Sure, where should I write it? (Haven't got all details yet, still investigating.)
Stefterv commentedon Mar 25, 2025
At the bottom of the website repo there is a little bit of documentation, if you could append your finding there
https://github.com/processing/processing-website?tab=readme-ov-file#keywordstxt
babaissarkar commentedon Mar 25, 2025
Opened a sister issue at https://github.com/processing/processing-website/issues. Since I'm already assigned to this, would be nice if I could be assigned there as well.
babaissarkar commentedon Mar 26, 2025
After running the keywords.txt update routine, seems like there are more missing keywords than just
setHeading()(Diff attached)@Stefterv @SableRaf what to do? should I just pick the entry for
setHeading()or add all of them? (Note: I might have to add more jsons than the one forsetHeading()based on whether they exist already in the website repo or not.)keywords-diff.txt
SableRaf commentedon Mar 26, 2025
@babaissarkar Thanks for doing the research! Yes, in that case I think it makes sense to fix the overarching issue even though it goes beyond the scope of the initial bug report.