Skip to content

fix(preprocessor): handle unquoted Java version string from Bioconda …#231

Open
rkmishra3893 wants to merge 1 commit into
PharmGKB:developmentfrom
rkmishra3893:fix/java-version-parsing-unquoted-openjdk
Open

fix(preprocessor): handle unquoted Java version string from Bioconda …#231
rkmishra3893 wants to merge 1 commit into
PharmGKB:developmentfrom
rkmishra3893:fix/java-version-parsing-unquoted-openjdk

Conversation

@rkmishra3893
Copy link
Copy Markdown

Summary

Fixes #230

Bioconda's OpenJDK build outputs its version string without quotes:
openjdk 25.0.1-internal 2025-10-21

The previous regex in validate_java() only matched the standard
quoted format used by Oracle/Temurin:
openjdk version "17.0.9" 2023-10-17

This caused a ReportableException ("Could not find version information
for Java") even though a fully compatible Java 25 was installed.

Change

One regex line updated in preprocessor/pcat/utilities.py (~line 218).
The new regex handles both quoted and unquoted formats using two
capture groups; group(1) or group(2) selects whichever matched.

Updated regex handles both formats. Closes #230

…OpenJDK Bioconda's OpenJDK omits quotes in its version output:

  openjdk 25.0.1-internal 2025-10-21

The previous regex only matched quoted format:
  openjdk version "17.0.9" 2023-10-17

Updated regex handles both formats. Closes PharmGKB#230
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pharmcat_pipeline Error: Could not find the version information for Java. Bug Fix.

1 participant