void-linux / void-linux/void-packages
Pycharm update doesn't get latest openjdk21-jre
Nobody has claimed this yet.
- 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
- Install the old version of
pycharm-community, withopenjdk11-jre - Update the package.
- Try to run
pycharm.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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