Open
Description
Describe the bug
When using the gradle task "writeLibraryProperties", the : sign is escaped with an \ . So this
# List of authors. Links can be provided using the syntax [author name](url).
authors=[Vincent Sijben](https://github.com/vincentsijben)
# A web page for your Library, NOT a direct link to where to download it.
url=https://vincentsijben.github.io/vjmotion-processing/
ends up being this in library.properties
authors=[Vincent Sijben](https\://github.com/vincentsijben)
url=https\://vincentsijben.github.io/vjmotion-processing/
which in turn causes the link in the contribution manager to fail.
Activity
SableRaf commentedon May 15, 2025
Hi @vincentsijben and thanks for your report!
Would you be interested in submitting a PR for a fix? I’d be happy to provide guidance if needed.
vincentsijben commentedon May 15, 2025
#89
I had to ask chatGPT 🤣
SableRaf commentedon May 16, 2025
Hi @vincentsijben and thanks for your efforts!
@Stefterv and I looked into this further. Escaping the
:
character is part of the.properties
specification. The actual issue is with thescripts/parse_and_validate_properties_txt.py
script in theprocessing-contributions
repo. I created an issue about this over there: processing/processing-contributions#76:
in.properties
causes invalid URLs in generated.yaml
processing/processing-contributions#76mingness commentedon May 16, 2025
@vincentsijben thanks for reporting this and the quick fix!
@SableRaf @Stefterv thanks for delving deeper into the effect, and the cause of it.
mingness commentedon May 17, 2025
I've made changes to the processing-contributions repo that should fix the linking issue.
First, I manually removed the backslashes - the contributions.yaml file is only updated when the version is updated, so it wouldn't automatically remove the backslashes until the next update.
Second, the parsing function reads in property text files as Java property files, with the additional parsing of inline comments. Inline comments are present in many property text files, but are not treated as such in Java property files. These comments are present to clarify the formatting version numbers, so without this additional parse step, the version numbers would contain the hash and comments.
Anyway, any new libraries won't introduce the backslash-colon into urls in the contributions.yaml