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
Task Type General Gripe
Category Packages
Status Closed
Assigned To Lukas Jirkovsky (6xx)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

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.
Comment by binary creations (binarycreations) - Thursday, 08 March 2018, 11:57 GMT
Link to AUR package that uses bundled JRE:
- https://aur.archlinux.org/packages/intellij-idea-ce/
Comment by Eli Schwartz (eschwartz) - Thursday, 08 March 2018, 16:00 GMT
The JRE was debundled due to the fact that it is incredibly ugly to bundle a giant java installation just to avoid issues where the user is using the wrong java.

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#56581 
Comment by binary creations (binarycreations) - Tuesday, 13 March 2018, 20:14 GMT
Using the bundled JRE ensures the IDEA installation is more likley to work given it is the officially supported and tested distribution of the application. It also allows for a different JDK to be installed to one required by IDEA.
Comment by Eli Schwartz (eschwartz) - Tuesday, 13 March 2018, 20:37 GMT
Using the bundled everything across all packages in our repositories would also ensure "it" is "more likely to work". But that is laughably insane... besides meaning that updating security issues becomes completely unworkable. We might as well use a statically compiled distro, for which you have many alternatives to Arch.

Nothing 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.
Comment by Levente Polyak (anthraxx) - Tuesday, 13 March 2018, 22:14 GMT
I use intellij on a daily base and i agree we should use system java here because of what Eli said. Works superb.
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.
Comment by binary creations (binarycreations) - Wednesday, 21 March 2018, 12:06 GMT
My apologies this is my first bug report I had forgot the nature of a rolling release distribution. I agree with @anthraxx, using IDEA_JDK would certainly seem like the best solution.

Loading...