void-linux / void-linux/void-packages

Pycharm update doesn't get latest openjdk21-jre

Open
#52,122 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs-testing
Dominant language
Shell
Stars
3.4k
Forks
2.8k
Avg merge
2d 5h
Merged PRs (30d)
299

Description

Is this a new report?

Yes

System Info

Void 6.6.37_1 x86_64 GenuineIntel uptodate rrmFFFFFFFFFFFFFFFFFFFFFFFFF

Package(s) Affected

pycharm-community-2024.2.1_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

No response

Expected behaviour

Updating pycharm-community from 2021.2.2 to 2024.2.1 works as expected.

Actual behaviour

I updated pycharm-community, then try to run it:

$ pycharm
Error: LinkageError occurred while loading main class com.intellij.idea.Main
  java.lang.UnsupportedClassVersionError: com/intellij/idea/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Installing openjdk21-jre did not help. I tried to remove the older one:

$ sudo xbps-remove -R openjdk11-jre
openjdk11-jre-11.0.22+6_1 in transaction breaks installed pkg `openjdk11-11.0.22+6_1'
Transaction aborted due to unresolved dependencies.
$ sudo xbps-remove -R openjdk11
openjdk11-11.0.22+6_1 in transaction breaks installed pkg `pycharm-community-2024.2.1_1'
Transaction aborted due to unresolved dependencies.
$ sudo xbps-remove -R pycharm-community openjdk11

Name              Action    Version           New version            Download size
pycharm-community remove    2024.2.1_1        -                      - 
openjdk11         remove    11.0.22+6_1       -                      - 
openjdk11-jre     remove    11.0.22+6_1       -                      -

Then I installed pycharm-community again and it worked.

Steps to reproduce
  1. Install the old version of pycharm-community, with openjdk11-jre
  2. Update the package.
  3. Try to run pycharm.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the pycharm-community package definition and its declared Java dependencies. Reproduce an upgrade from the old package with openjdk11 installed, then verify that updating pycharm-community also provides a compatible Java runtime and that the package launches successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.