V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xiaopanzi
V2EX  ›  Java

在 IDEA 中 google- Java -format 无法使用

  •  
  •   xiaopanzi · 216 天前 · 569 次点击
    这是一个创建于 216 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我在 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
    
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2322 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 06:09 · PVG 14:09 · LAX 23:09 · JFK 02:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.