Skip to content

Library version number parsing does not ignore comments #586

Closed
@processing-bot

Description

Created by: prisonerjohn

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    has attachmentAttachment was not transfered from GitLab

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions