void-linux / void-packages

The Void source packages collection
https://voidlinux.org
Other
2.6k stars 2.17k forks source link

Pycharm update doesn't get latest openjdk21-jre #52122

Open Eloitor opened 2 months ago

Eloitor commented 2 months ago

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.
chrysos349 commented 2 months ago

https://github.com/void-linux/void-packages/pull/52065#discussion_r1740196422