"Find in Path" dialog change in 2018.2 version
This is a new issue after updating to 2018.2 version. The Find in Path dialog has been changed to old style - a modal dialog that you cannot focus on webstorm main window, and the filter input is not on top line of the dialog.
At the bottom of the dialog there is a note: "There is another version of this dialog in a form of lightweight popup. To use it, run the IDE with the bundled JRE."
I tried to download JRE from https://bintray.com/jetbrains/intellij-jdk/openjdk8-windows-x64 and checked https://dl.bintray.com/jetbrains/intellij-jdk/, downloaded the compressed file and copied to local folder and added environment variable as this post mentioned:
https://stackoverflow.com/questions/38452701/how-to-run-intellij-idea-with-jetbrains-runtime
Also tried to copy it to installation folder for webstorm, but none of them works for me.
I am guessing the so-called lightweight popup in 2018.1 is what I used to use, but cannot get it in 2018.2 now. Any idea?
Thanks!
Please sign in to leave a comment.
Bugs in Oracle JDK prevent showing dialogs (File chooser / Scope Chooser / Confirmation Yes-No dialogs) above popups, so the popup is disabled when using non-bundled JDK. But switching the JDK to JetBrains one per instructions in https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-undershould should help... What JDK do you run ewebstorm with currently? Please attach a screenshot of About dialog
I have tried with switching JDK version, following the instruction on link https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-undershould. I tried two ways - switch via Find Action, and point to the installed bundled JRE, or edit Users/[username]/.WebStorm2018.2/config/webstorm64.exe.jdk pointing to JRE I downloaded from https://dl.bintray.com/jetbrains/intellij-jdk/.
The tricky thing is, whatever change I made, when I do Find Action and select Boot JDK, it always shows that the installed JDK as default.
I have specified JAVA_HOME environment variable:
And I don't want to delete it.
In this situation, I cannot successfully set bundled JRE. I also tried to run WebStorm as Admin but it still does not work.
The About dialog shows:
WebStorm 2018.2
Build #WS-182.3684.70, built on July 20, 2018
Licensed to ........
JRE: 1.8.0_144-b01 amd64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
>The tricky thing is, whatever change I made, when I do Find Action and select Boot JDK, it always shows that the installed JDK as default.
and what happens if you choose a bundled JDK from jre64 folder in this dialog, and then restart the IDE?
Q: What happens if you choose a bundled JDK from jre64 folder in this dialog, and then restart the IDE?
A: The Find in path dialog still not working, and if you do Find Action and select Boot JDK, it always shows that the installed Oracle JDK as default. It did not take the bundled JRE that you selected. And if you think it may related to Admin permission, I tried run IDE as Admin and repeated this process, still did not change the Boot JDK. I guess it's because I have environment variable JDK_HOME defined, but I need it so I did not try deleting it.
No, `JAVA_HOME` variable has the lower priority than <product>.jdk file (see https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-undershould, Windows section for the information about JDK searching order)
I'd suggest removing WebStorm installation along with ~/.WebStorm2018.2/config/<product>.jdk file and re-installing from scretch/
BTW, in your very first post you mentioned that you had added environment variable per instructions at https://stackoverflow.com/questions/38452701/how-to-run-intellij-idea-with-jetbrains-runtime
Can you clarify what variable you set namely? As, though JAVA_HOME has a lowest priority, WEBIDE_JDK_64 has a highest one
Okay. I followed the suggest to uninstall completely and reinstall 2018.2, and I did another thing:
As you mentioned JAVA_HOME has lowest priority, I checked and found Webstorm automatically created an environment variable WEBIDE_JDK_64 but it points to Oracle JDK 1.8. I changed that manually to the downloaded JetBrain JDK.
Now the Find in Path dialog works fine. Thanks!
I originally followed https://stackoverflow.com/questions/38452701/how-to-run-intellij-idea-with-jetbrains-runtime and named the environment variable IDEA_JDK_64 but it does not work.
Fine, but WebStorm never sets WEBIDE_JDK_64 variable automatically; you must have created it yourself somehow:)
No I did not even know it before I read your post, then I tried to rename IDEA_JDK_64 to WEBIDE_JDK_64 but was told there has already been a variable with the same name. I realized that it was created silently by WebStorm but somehow WebStorm could not update it maybe because I run Webstorm as normal user? I tried run Webstorm as admin and it failed to update its value either. Anyway, manually set it is safe way to make the dialog work.
> I realized that it was created silently by WebStorm but somehow WebStorm could not update it maybe because I run Webstorm as normal user?
webstorm never creates/updates it, regardless of the user you run it as...
Then it is created by the installer? Otherwise how do you know there exists this environment variable WEBIDE_JDK_64 on my machine, and also you know it has higher priority than JDK_HOME?
>Then it is created by the installer?
No, it's not
>Otherwise how do you know there exists this environment variable WEBIDE_JDK_64 on my machine
WebStorm doesn't need this variable, but the launcher checks if it's set in your environment and, if it's there, uses it to locate the boot JDK. The hardcoded sequence is as follows:
if exists WEBIDE_JDK_64
use WEBIDE_JDK_64
else if exists webstorm64.exe.jdk
use webstorm64.exe.jdk
else if exists %IDE_HOME%\jre64
use jre64
else if exists %JDK_HOME%
use %JDK_HOME%
else if exists %JAVA_HOME%
use %JAVA_HOME%
else throw error "No JDK found"
I have the same problem, but i need use jdk 11 because of some plugin.
Is there any way to use it?