-
-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Description
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
- Open tools- -> manage tools
- Library tab
- 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; |
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
Labels
No labels