How to make Idea use jetbrains jvm?

I've created 'plugin' run configuration. It works, but when idea runs with my plugin it looks a little bit strange. Fonts differ from true idea, some strange UI bugs, etc. And no "View Psi structure" menu in it. I'm stuck. What am I doing wrong?

True IDEA:  JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Sandbox IDEA: JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation

How to make it use jetbrains  JVM?


To get "View PSI Structure" in the Sandbox IDE you need to install it in the Sandbox IDE: either manually as you would in your normal IDE, or using the gradle plugin's ability to add plugins

plugins = ["org.jetbrains.erlang:${intellij_erlang_version}",
// always have IdeaVIM installed in sandbox

The JRE (thus, the JVM) that is used when running the debug instance of IDEA,etc. is the one specified in the Run/Debug configuration, which, by default, points to the one in project settings (File->Project Structure...) for the module or project you are running.  If you want to use a bundled JRE, then point the run/debug configurations at the IntelliJ SDK that you are using to compile your project against.

PsiViewer is built into the IDE, since 14.0, I believe.  To get it to work in your sandbox, add `` to the VM Options line in the run/debug configurations for your plugin project.  I haven't used a plugin for this for a few years now.

The "View PSI Structure" menu items appear on the "Tools" menu.




Please sign in to leave a comment.