Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76037 - [intellij-idea-community-edition] Support for Java Runtime 17

Attached to Project: Community Packages
Opened by Zhanibek Adilbekov (liljaylj) - Tuesday, 27 September 2022, 23:02 GMT
Last edited by Leonidas Spyropoulos (inglor) - Saturday, 08 October 2022, 15:58 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Leonidas Spyropoulos (inglor)
Levente Polyak (anthraxx)
Orhun Parmaksız (orhun)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Starting with version 2022.2 JetBrains added support for Java Runtime (or their version of runtime) 17 to run the IDE.

I have checked that Idea IDE works with jre17-openjdk 17.0.4.1.u1-2 and jre-openjdk 18.0.2.1.u0-1.

My suggestion is to add java-environment>=17 to the list of dependencies.


Additional info:
* package version(s): 4:2022.2.2-1
This task depends upon

Closed by  Leonidas Spyropoulos (inglor)
Saturday, 08 October 2022, 15:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  4:2022.2.3-1 resolves this
Comment by Toolybird (Toolybird) - Wednesday, 28 September 2022, 22:23 GMT
Also see  FS#74903 
Comment by Leonidas Spyropoulos (inglor) - Thursday, 29 September 2022, 12:08 GMT
Currently in testing 4:2022.2.2-2
Comment by Zhanibek Adilbekov (liljaylj) - Thursday, 29 September 2022, 14:02 GMT
according to this commit (https://github.com/archlinux/svntogit-community/commit/bf5a3f869ac007a65feac022502e6fc4f899f606#diff-37538beb61ff63edebbf735dfcf39e5d732f49183d6beb097169d971875ca422R18) `java-environment=11` changed to specific `jre17-openjdk` which is not a good solution.

instead, I suggest to change it to: `java-runtime=11` and `java-runtime>=17` in depends array, leaving the user to be able to use a custom JRE (e.g. `jre-jetbrains` from AUR, which is recommended and supported by JetBrains)
Comment by Levente Polyak (anthraxx) - Thursday, 29 September 2022, 16:20 GMT
Running with a custom JRE is not achieved by fulfilling the pacman dependency, but you will need to set the IDEA_JDK environment variable.
Our default needs to depend on whatever we declared statically.
Comment by Zhanibek Adilbekov (liljaylj) - Thursday, 29 September 2022, 20:53 GMT
yes, I know about IDEA_JDK env var, but what if I don't need jre17-openjdk in my system.
currently `4:2022.2.2-2` forces me to install `jre17-openjdk` even I have installed `jre-jetbrains` and set to `IDEA_JDK=/usr/lib/jvm/jre-jetbrains`.

Loading...