FS#57752 - [intellij-idea-community-edition] Should use bundled JRE
Attached to Project:
Community Packages
Opened by binary creations (binarycreations) - Thursday, 08 March 2018, 11:54 GMT
Last edited by Lukas Jirkovsky (6xx) - Friday, 30 March 2018, 21:28 GMT
Opened by binary creations (binarycreations) - Thursday, 08 March 2018, 11:54 GMT
Last edited by Lukas Jirkovsky (6xx) - Friday, 30 March 2018, 21:28 GMT
|
Details
Description:
The package intellij-idea-community-edition 2:2017.3.4-1 (https://www.archlinux.org/packages/community/any/intellij-idea-community-edition/) does not use the java environment that is bundled with IDEA. By not doing so it is using an unsupported environment. The application can behave in an unexpectedly manner. If you select to install jdk9-openjdk as your Java environment, the application crashes immedidiately on start up. There is an upstream issue already reported for this crash (https://youtrack.jetbrains.com/issue/IDEA-179636). Additional info: * intellij-idea-community-edition 2:2017.3.4-1 * See attachment for log files Steps to reproduce: 1. pacman -S intellij-idea-community-edition 2. Select open JDK 9 3. Run the application The attached idea_crash.log file includes terminal session installing the package, journalctl log and stacktrace from IDEA. Expected Behaviour: The package should use the JRE bundled with IDEA, this would prevent this crash from occurring. An AUR package is already available that uses the bundled java environment. This will help provide a better user experience and also mean that the package is more stable in the future, through using the java environment that Jetbrains tests and ships with IntelliJ. |
This task depends upon
Closed by Lukas Jirkovsky (6xx)
Friday, 30 March 2018, 21:28 GMT
Reason for closing: Won't fix
Additional comments about closing: As Eli already said, system-wide java is the way to go.
I just uploaded 2018.1 which depends on java 8 and which sets IDEA_JDK accordingly. Unfortunately there are still some minor bugs if java is not set to java 8, such as Gradle import not working, so there's a postinstall message, too.
Friday, 30 March 2018, 21:28 GMT
Reason for closing: Won't fix
Additional comments about closing: As Eli already said, system-wide java is the way to go.
I just uploaded 2018.1 which depends on java 8 and which sets IDEA_JDK accordingly. Unfortunately there are still some minor bugs if java is not set to java 8, such as Gradle import not working, so there's a postinstall message, too.
- https://aur.archlinux.org/packages/intellij-idea-ce/
A better solution would be to depend on java-runtime=8 thereby forcing the user to have the right version of the runtime installed. This is basically the same situation as
FS#56581Nothing whatsoever is stopping users from installing multiple JDKs. It's just kind of ugly to actually choose which one is active and being used by a given java application.
one quite easy solution would indeed be to depend on openjdk java 8 and possibly pass in /usr/lib/jvm/java-8-openjdk via JDK or IDEA_JDK so it doesn't matter what a users sets.