After PHPStorm 2016.2.2 update, my projects are indexed every time I open them

Starting with PHPStorm version 2016.2.2 all my projects are indexed *every* time I open them which is very annoying since some of them are huge and my computer is locked up for about a minute or two while the indexing is running. I have invalidated the caches and restarted but it is still the same.

Previous versions worked as expected, i.e. not running indexing when re-opening the project.

Where should I start looking for a solution?

0
9 comments

Indices are always being updated on launch, but it's only an update, not a full scan.
Please restart the IDE, wait for indexing to complete and attach the IDE log (as a test file, if possible. Some 3rd party file hosting would be fine).

0

For some reason you're running under Oracle JDK.
If you want to run under x64 JDK, you can download ours here: https://bintray.com/jetbrains/intellij-jdk/openjdk8-windows-x64#files
Instructions on how to switch between JDKs: https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-selecting-the-jdk-version-the-ide-will-run-under

0

Wow - didn't know I couldn't use Oracle Java, been using it since I swapped to PHPStorm two years ago.

Will change and see if that works better.

0

It's not that you can't, but actually JDK switching solves a half of performance related support tickets.
Oracle JDK works OK in some cases, and then it just stops.
(Disabling the plugins usually solve the other half by the way)

0

Hmmm... Not much luck here setting up PHPSTORM_JDK env variable here on Windows 10. It is reported fine in CMD but PHPStorm complains about JAVA_HOME not being correct.

PHPSTORM_JDK=C:\Util\jbsdk8u112b287.3_windows_x64

If I remove JAVA_HOME, PHPStorms complains when clicking PhpStorm64.exe:

---------------------------
Error launching PHPSTORM
---------------------------
No JVM installation found. Please install a 64-bit JDK.
If you already have a JDK installed, define a JAVA_HOME variable in
Computer > System Properties > System Settings > Environment Variables.
---------------------------
OK   
---------------------------

0

OK, changed JAVA_HOME to point to the JetBrains distro of Java and now PHPStorm runs.

However, this makes my other JAVA-dependent application to fail since they require Oracle JAVA. Will fix some BAT-file for PHPStorm, but it would be nice if the IDE would behave as described and using the PHPSTORM_JDK env. variable.

0

I can also confirm that the original problem is indeed solved - indexing no longer runs on every opening of the projects.

0

> it would be nice if the IDE would behave as described and using the PHPSTORM_JDK env. variable.

It's not mentioned there, but for x64 JDK it should be PHPSTORM_JDK_64

0

Please sign in to leave a comment.