IntelliJ plugin not working
Opened this issue · 3 comments
Summary
Following the instructions, I'm unable to get the formatter plugin to work.
Details
I've completed all steps in the instructions:
-
Installed plugin
-
Enabled the plugin in "Settings -> Other Settings -> google-java-format Settings":
-
Restarted the IDE
But I still get the following error when attempting to run "Reformat code" command:
Environment
@tstewart15 the config options look right to me.
Does your configured project JDK have the required classes? Listed below.
You might be able to check your idea.log file for the below log message. It should indicate which class is missing (if any).
Sorry looks like I misunderstood which JDK is used for the extension. You’ll want to check if the boot JDK has the required classes. Some info on that here, https://www.jetbrains.com/help/idea/switching-boot-jdk.html.
Thanks @nrayburn-tech sorry for the delay.
I tailed the idea.log file while disabling then reenabling the plugin, as well as quitting then restarting IDEA, but did not find any error messages mentioning "google-java-format".
I did find an info log which mentions the JRE used by IDEA during boot (I think):
2024-10-08 22:37:52,570 [ 65] INFO - #c.i.p.i.b.AppStarter - JRE: 17.0.11+1-b1207.24, aarch64 (JetBrains s.r.o.)
Any ideas on next steps to investigate?