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#62146 - [intellij-idea-community-edition] Unable to switch boot JDK

Attached to Project: Community Packages
Opened by neko259 (neko259) - Tuesday, 26 March 2019, 16:11 GMT
Last edited by Levente Polyak (anthraxx) - Thursday, 28 March 2019, 20:44 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Lukas Jirkovsky (6xx)
Maxime Gauduin (Alucryd)
Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

idea.sh file is replaced in this package and forces IDEA to run with openjdk8 regardless of the system JDK and "switch boot JDK" action. The comment says it's done so that the user won't run IDEA with JDK older than 8, but in fact one cannot run it even with latter versions of JDK such as 9-11. This hardcode should either check if the system uses pre-8 version, or be completely removed and allow user to switch JDK manually.
This task depends upon

Closed by  Levente Polyak (anthraxx)
Thursday, 28 March 2019, 20:44 GMT
Reason for closing:  Not a bug
Comment by Levente Polyak (anthraxx) - Tuesday, 26 March 2019, 22:55 GMT
not everything works with newer JDK's so right now you are forced to take 8 as a IDEA runtime
Comment by neko259 (neko259) - Wednesday, 27 March 2019, 07:42 GMT
Are there any specific cases that cause issues on newer JDK? Intellij does not say anything about this and allows to run with any jdk except older than 8.
Comment by Levente Polyak (anthraxx) - Wednesday, 27 March 2019, 20:43 GMT
There were issues like https://bugs.archlinux.org/task/57752 and others, having serious startup issues and later malfunctions in gradle and other plugins.
however, not sure if anything changed, maybe
Comment by neko259 (neko259) - Wednesday, 27 March 2019, 20:52 GMT
That is a bit different issue. There are still problems with not using bundled JRE, e.g. latest idea has a new find menu that is used only with bundled JRE and falls back to the "old" menu with the system one. And I'm having a strange issue with any system JRE when the open (or navigate) menu sometimes freezes (it works, but you don't see what you are typing and what results are suggested to open). I was trying to use other JDK to check if this is an openjdk issue or a jdk version issue, but discovered that openjdk8 is hardcoded.
Comment by Levente Polyak (anthraxx) - Thursday, 28 March 2019, 09:04 GMT
Its not different, people used JRE > 8 and experienced crashes (myself included) plus non working gradle plugin (myself included).
PS: you can still set IDEA_JDK env var
PPS: the comment says "other than java 8" not "older than"
Comment by neko259 (neko259) - Thursday, 28 March 2019, 09:17 GMT
I'm running the /usr/share/idea/bin/idea.sh now to resolve this, but I assume I'll have to switch to bundled JDK from aur to resolve the freeze issues.
PS: I've tried different versions and can say that JDK11 really has some issues with loading the gradle project. 9 and 10 work fine with the latest version. Same for oracle JDKs.
Comment by Levente Polyak (anthraxx) - Thursday, 28 March 2019, 09:29 GMT
java 9 and 10 are basically dead, it either works with latest or it works with LTS (8), I will not introduce another dependency to an EOL java version.
Comment by neko259 (neko259) - Thursday, 28 March 2019, 09:31 GMT
Hmm, indeed. Then I'll just have to use the AUR version, thanks anyway.

Loading...