Skip to content
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

Library version number parsing does not ignore comments #586

Closed
prisonerjohn opened this issue Oct 31, 2022 · 3 comments
Closed

Library version number parsing does not ignore comments #586

prisonerjohn opened this issue Oct 31, 2022 · 3 comments

Comments

@prisonerjohn
Copy link
Contributor

Description

Processing 4 Contribution Manager appears to include # comments in the property values, which causes number parsing for version value to fail.

It looks like maybe this was already reported in #553 but it was closed for inactivity.

Expected Behavior

If the properties file includes a line like:

version = 12  # This must be parsable as an int

The parser should ignore the # and everything after it when retrieving the value.

Processing 3.5.4 appears to do this correctly.

image

Current Behavior

Processing 4.0.1 includes comments in the library prettyVersion and complains about "The version number for “XXX” is not a number."

image

Steps to Reproduce

  1. Open the Processing Contribution Manager
  2. Try to download the library nub or websockets

Your Environment

  • Processing version: 4.0.1
  • Operating System and OS version: Windows 11
  • Other information:

Possible Causes / Solutions

@benfry
Copy link
Owner

benfry commented Nov 4, 2022

Ah, that makes more sense than the report in #553. Should be straightforward to fix.

@benfry
Copy link
Owner

benfry commented Nov 4, 2022

Fixed for 4.0.2. The problem was that in-line comments (versus comments starting at the beginning of a line) were disabled so that it was possible to parse hex colors from settings files. (Otherwise, a hex color just looks like a comment.) Split the two cases and we should be all set.

@github-actions
Copy link

github-actions bot commented Dec 5, 2022

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants