Skip to content

Processing 4 Rejects Third Party Libs if Version is not numeric #553

@processing-bot

Description

@processing-bot

Created by: jedishrfu

Description

Processing 4.0.1 Rejects Third Party Libs If Version is Not Numeric and consequently doesn't install the library or its examples.

ControlP5 and PixelFlow are two notable examples that failed:

The version number for “Coding Creative” is not a number.
Please contact the author to fix it according to the guidelines.

The version number for “ControlP5” is not a number.
Please contact the author to fix it according to the guidelines.

The version number for “oscP5” is not a number.
Please contact the author to fix it according to the guidelines.

The version number for “spacebrewP5” is not a number.
Please contact the author to fix it according to the guidelines.

The version number for “PixelFlow” is not a number.
Please contact the author to fix it according to the guidelines.

Expected Behavior

Expected it to use some default or string convert to get the number but still load the library.

Current Behavior

Fails to load the library and its examples.

Steps to Reproduce

  1. Open tools- -> manage tools
  2. Library tab
  3. Select PixelFlow or ControlP5 error appears in console if Processing 4 launched from the command line.

Your Environment

Running on Linux Fedora 36 Workstation Edition

  • Processing version: 4.0.1
  • Operating System and OS version: Linux Fedora 36 Workstation Edition
  • Other information: Nope

Possible Causes / Solutions

The check is found in AvailableContribution.java (see below) and LocalContribution.java but there may be other places as well.

 	      int version;
      try {
        version = Integer.parseInt(properties.get("version"));
      } catch (NumberFormatException e) {
        version = getVersion();
        System.err.println("The version number for “" + name + "” is not a number.");
        System.err.println("Please contact the author to fix it according to the guidelines.");
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions