我在 IDEA Utimate 里面下载的该插件,并在custom vm options
里面添加了如下配置:
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
但是,它还是提示需要设置:
The google-java-format plugin needs additional configuration before it can be used. Follow the instructions here.
这是 Bug 还是我设置的问题?
IntelliJ IDEA 2023.2 (Ultimate Edition)
Build #IU-232.8660.185, built on July 26, 2023
Subscription is active until December 30, 2023.
For educational use only.
Runtime version: 17.0.7+7-b1000.6 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.1.53-1-manjaro
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 24
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
IdeaVIM (2.5.1)
com.codeium.intellij (1.2.89)
google-java-format (1.17.0.0)
Kotlin: 232-1.9.0-IJ8660.185
Current Desktop: KDE