You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
in idea 2022.3.3, this plugin throw error : configure the jre for google-java-format #940
@git-code-for-me I had the exact same problem today. Apparently it's very important that you put a newline at the end of you .vmoptions file otherwise the last option gets concatenated with some other options that idea is adding.
Can you see if those options are actually being applied to the JVM? For example, if you do a ps auxw | grep idea.Main, do you see those options (all six of them) being passed to the JVM?
(Sorry, I don't have a Mac, so I don't know if ps auxw actually works there, but I think it should...)
Activity
andskiba commentedon May 19, 2023
@git-code-for-me I had the exact same problem today. Apparently it's very important that you put a newline at the end of you
.vmoptionsfile otherwise the last option gets concatenated with some other options that idea is adding.fix google#940 Update README.md - new line is important for .vmoptions
malopez16 commentedon Jul 27, 2023
adding new line doesn't work for me.
evilmilo commentedon Nov 2, 2023
I've having same issue, idea 2023.2.4
Running on intel mac.
openjdk version "17.0.9" 2023-10-17
Keep getting the popup every time start IDE saying to configure the jre for google-java-format
Formatting doesn't work at all. The preview window in Code Style doesn't update with config changes.
Checked idea.log , and can't see anything to explain why this isn't loading, not errors or warning, just single line saying loaded plugin:
2023-11-02 08:56:58,416 [ 241] INFO - #c.i.i.p.PluginManager - Loaded custom plugins: google-java-format (1.17.0.0), Save Actions - XDEV Edition (1.0.4)idea.vmoptions
Is there anywhere else to get logs or diagnostics on why this plugin isn't loading properly?
plumpy commentedon Nov 2, 2023
Can you see if those options are actually being applied to the JVM? For example, if you do a
ps auxw | grep idea.Main, do you see those options (all six of them) being passed to the JVM?(Sorry, I don't have a Mac, so I don't know if
ps auxwactually works there, but I think it should...)evilmilo commentedon Nov 2, 2023
evilmilo commentedon Nov 2, 2023
So looks like issue with intellij on mac, not the plugin (not picking up vm options).
Instead, I editted:
/Applications/IntelliJ\ IDEA\ CE.app/Contents/Info.plistFound this section:
and at the end of that array, added the other strings
Restarted, and now works as expected!
evilmilo commentedon Nov 2, 2023
Hmm... so raised with Intellij, but they said vm options are loading correctly, so maybe issue with plugin not picking up options correctly?
https://youtrack.jetbrains.com/issue/IDEA-337068/Custom-VM-Options...-are-not-being-applied-when-running-on-Mac
cushon commentedon Oct 29, 2026
Current releases of the IntelliJ plugin target IntelliJ 2025.1+ (which bundles JBR 21) and configure the required JVM exports automatically when installed from the JetBrains Marketplace: https://github.com/google/google-java-format#intellij-android-studio-and-other-jetbrains-ides.