Package Details: phpstorm 2016.1.2-1

Git Clone URL: https://aur.archlinux.org/phpstorm.git (read-only)
Package Base: phpstorm
Description: Lightweight and Smart PHP IDE
Upstream URL: http://www.jetbrains.com/phpstorm/
Keywords: development ide php
Licenses: Commercial
Submitter: None
Maintainer: frederik
Last Packager: frederik
Votes: 124
Popularity: 5.261396
First Submitted: 2011-01-22 19:28
Last Updated: 2016-05-25 19:57

Dependencies (2)

Required by (0)

Sources (3)

Latest Comments

bcremer commented on 2016-05-11 14:17

New important security update was just released
https://download.jetbrains.com/webide/PhpStorm-2016.1.1.tar.gz
sha256 442d98120763932bc34545df022171baca5d2bc44e34b1f36f949e4355b99441

See:
http://blog.jetbrains.com/blog/2016/05/11/security-update-for-intellij-based-ides-v2016-1-and-older-versions/

frederik commented on 2016-03-21 18:51

@KingCrunch: Thank you. Gonna fix PKGBUILD.

So their "System requirements" on this page are completely wrong:
https://www.jetbrains.com/phpstorm/download/#section=linux-version

KingCrunch commented on 2016-03-21 18:39

@frederik

No

/opt/phpstorm$ java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (Arch Linux build 7.u95_2.6.4-1-x86_64)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
/opt/phpstorm$ bin/phpstorm.sh

Unsupported Java Version: Cannot start under Java 1.7.0_95-b00: Java 1.8 or later is required.


To be fair it was not that obvious to find some information

See also
https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under
https://blog.jetbrains.com/phpstorm/2016/01/phpstorm-11-early-access-program-started/

frederik commented on 2016-03-19 01:11

@KingCrunch Please see phpstorm page. It depends on 'Oracle JRE 1.6+ or OpenJDK 1.7+'

KingCrunch commented on 2016-03-19 00:57

The intelliJ-platform requires Java >=8

frederik commented on 2016-03-18 20:03

@declasun: thx for the hint. I don't think that a wrapper around the startscript is a good way to achieve this. I've just added a profile.d file and a note in the PKGBUILD.

dcelasun commented on 2016-03-18 15:13

@frederik: intellij-idea-ultimate-edition [0] recently merged this [1] patch so IDEA would prefer the system JDK. Could you also make the same change here?

[0] https://aur.archlinux.org/packages/intellij-idea-ultimate-edition
[1] https://gist.github.com/rbellamy/5e8d61a449bbff5132aa#file-0001-honor-idea_jdk-set-by-environment-patch

retzudo commented on 2016-02-01 13:29

Thanks Wietse for the explanation and workaround. Starting PhpStorm with `WEBIDE_JDK=/usr/lib/jvm/java-8-openjdk /opt/phpstorm/bin/phpstorm.sh` from the terminal did in fact work for me.

I copied the desktop file located at /usr/share/applications/jetbrains-phpstorm.desktop to ~/.local/share/applications/, changed the Exec line from

Exec="/opt/phpstorm/bin/phpstorm.sh" %f

to

Exec=env WEBIDE_JDK=/usr/lib/jvm/java-8-openjdk "/opt/phpstorm/bin/phpstorm.sh" %f

logged out and back in (GNOME wouldn't pick up the new desktop file otherwise) and Bob's your uncle. No more ugly fonts. This fix should persist through updates.

Wietse commented on 2016-01-31 11:48

@retzudo PhpStorm uses it's own packaged Oracle Java JDK, which causes the fonts to be terribly ugly.

Phpstorm tries to locate a JDK installation directory which will be used to run the IDE in the following order: WEBIDE_JDK, ../jre, JDK_HOME, JAVA_HOME, "java" in PATH.

The clean solution is to set the WEBIDEA_JDK environment variable to the OpenJDK path. For some reason this did not work for me, but I did not feel like spending a lot of time to find out why, so I just renamed /opt/phpstorm/jre to something else so PhpStorm would use JDK_HOME instead. (I will have to do this after each PhpStorm update.)

PhpStorm does not officially support OpenJDK, but I have experienced no problems so far.

retzudo commented on 2016-01-21 14:00

With PhpStorm 10 I once again have font rendering issues that other people and I had with PhpStorm 9 (i.e. no anti-aliasing). The PKGBUILD for 9 had these lines to fix the issue:

# fixing FS#40934 here too
sed -i 's/lcd/on/' "${pkgdir}/usr/share/phpstorm/bin/phpstorm${SUFFIX}.vmoptions"
echo "-Dswing.aatext=true" >> "${pkgdir}/usr/share/phpstorm/bin/phpstorm${SUFFIX}.vmoptions"

So I tried to replicate that in /opt/phpstorm/bin/phpstorm64.vmoptions which didn't help. I also copied the file to ~/.WebIde100/ which also didn't fix the font rendering.
Running PhpStorm via `_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on' phpstorm` also didn't make any difference.

I have infinality packages installed (fonts & JRE/JDK) and font rendering in PhpStorm 9 (installed via commit b164826 & makepkg) works correctly.

Suggestions?

All comments