| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Hi @fdoflorenzano and thanks a lot for your efforts fixing the Doclet script! I'm not sure who to ask for a review but maybe @sampottinger could give us some hints? |
Sorry, something went wrong.
|
Cool! I haven't worked much on this piece before. I think, given the size of the PR, I'd need to ask @benfry how he wants to move forward. |
Sorry, something went wrong.
|
If there's limited bandwidth elsewhere, happy to provide (a potentially slightly slower) review! |
Sorry, something went wrong.
|
Sounds good, @sampottinger! Let's wait and see what @benfry has to say regarding the review process. In the meantime, I'll probably start using the updated Doclet script anyway, as it's definitely an improvement over not being able to update the docs at all. Thanks again for your willingness to help out! |
Sorry, something went wrong.
|
Hey @fdoflorenzano, I just tried to run the script locally and I'm running into some issues. I'll summarise below are the steps I have been following, for reference. Let me know if you spot anything I could do differently to run this properly. I'm on macOS Monterey 12.5.1 (21G83) and using openjdk version "17.0.4.1" 2022-08-12 LTS Edit: I just tried switching to Oracle's JDK-17 but I get the same errors.
openjdk version "17.0.4.1" 2022-08-12 LTS OpenJDK Runtime Environment Corretto-17.0.4.9.1 (build 17.0.4.1+9-LTS) OpenJDK 64-Bit Server VM Corretto-17.0.4.9.1 (build 17.0.4.1+9-LTS, mixed mode, sharing)
I get 100 errors. ./processingrefBuild.sh
[REFERENCE GENERATOR] Booting up...
[REFERENCE GENERATOR] Source Path :: ../../processing4/core/src
[REFERENCE GENERATOR] Library Path :: ../../processing4/java/libraries
No arguments supplied, generating everything
[REFERENCE GENERATOR] Removing previous version of the ref...
[REFERENCE GENERATOR] Generating new javadocs...
Note: Doclet using locale: en_DE
Added description tag: description
Loading source file ../../processing4/core/src/processing/core/PApplet.java...
Loading source file ../../processing4/core/src/processing/core/PConstants.java...
...
Constructing Javadoc information...
../../processing4/core/src/processing/core/PApplet.java:42: error: package processing.awt does not exist
import processing.awt.ShimAWT;
^
../../processing4/core/src/processing/core/PImage.java:36: error: package processing.awt does not exist
import processing.awt.ShimAWT;
^
../../processing4/core/src/processing/core/PShape.java:33: error: package processing.awt does not exist
import processing.awt.PImageAWT;
^
...
Here are the full logs: https://pastebin.com/dPYF8wJC |
Sorry, something went wrong.
|
Hey @SableRaf! Thanks for trying it and letting me know! I did a fresh run following yours steps (thanks for detailing them!), and I had the same output! Two extra steps I believe are needed to make this work: building the code for processing4 and processing-sound. Those leftover 6 I'm unsure I didn't get in my original try (I still don't get them when running locally), but I figured I missed the a path to processing.awt, so I just pushed that. That made it work for me. Let me know if that helps! |
Sorry, something went wrong.
|
Thanks @fdoflorenzano! I followed these steps and it seems to be working! One thing I just noticed looking at the instructions again is that I had also forgotten to run ant compile in the ReferenceGenerator directory 🙈 |
Sorry, something went wrong.
|
Hi @fdoflorenzano, I noticed a difference with the JSON files before and after running the new doclet script. The content appears to be the same, but the formatting of the JSON object is different. The before version is formatted with line breaks and indentation, while the after version is a single line without any line breaks or indentation. Is this difference in formatting expected or normal? If it is not expected, do you have any suggestions on how to address this issue? Thank you for your assistance! Here's a comparison using GPIO_releaseInterrupt_.json as an example: Before: {
"brief": "Stops listening for interrupts on an input pin",
"related": [],
"name": "releaseInterrupt()",
"description": "Stops listening for interrupts on an input pin",
"syntax": [".releaseInterrupt(pin)"],
"returns": "void",
"type": "method",
"category": "GPIO",
"subcategory": "",
"classanchor": "GPIO",
"parameters": [{ "name": "pin", "description": "GPIO pin", "type": ["int"] }]
}
After: {"brief":"Stops listening for interrupts on an input pin","related":[],"name":"releaseInterrupt()","description":"Stops listening for interrupts on an input pin","syntax":[".releaseInterrupt(pin)"],"returns":"void","type":"method","category":"GPIO","subcategory":"","classanchor":"GPIO","parameters":[{"name":"pin","description":"GPIO pin","type":["int"]}]}
Screen capture for illustration |
Sorry, something went wrong.
|
Hey @SableRaf ! Yes, this is expected. I think you are missing the last step in the doclet list:
|
Sorry, something went wrong.
That was it! Thanks for your patience @fdoflorenzano 🙏 I'll update the README to clarify those steps. |
Sorry, something went wrong.
|
So happy to see this finally coming together! Thanks for the hard work @fdoflorenzano! |
Sorry, something went wrong.
With Processing 4 we switched from JDK 11 to JDK 17. Unfortunately, this caused the script that parses JavaDoc comments in the Processing source and creates JSON files in the website repository to break. As a result, we were unable to update the reference until we had an updated script. However, we have now generated new JSON files using an updated script that can be found at this link: processing/processing-doclet#2
|
Merged 🚀 Thanks to @fdoflorenzano and the whole DSI team for your support! |
Sorry, something went wrong.
|
I updated the README: https://github.com/processing/processing-doclet#readme |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Hey there! This is my attempt at re-writting the doclet with the new javadoc API, so hopefully closes #1.
Just to preface, I don't consider myself a Java developer, so I might have missed stuff and for sure would need someone who is to take a look at this. My approach to translate it was running the script locally and checking the differences it generated in the JSON output, and incrementally translate different sections.
After a while, I got to the point where the script is either producing the same output or actually updating some of them with recent changes to the Processing codebase, with some exceptions that I think are OK. I'll list the exceptions below.
Maybe having someone who has more context about the doclet history/usage would be helpful to check the list! I can get to any thing that should be fixed but failed to notice.