google / google/google-java-format
google-java-format doesn't work in intellij idea,when i upgrad to jdk 21 with enable preview feature!~
未關閉
IntelliJ
- 主要語言
- Java
- 星號
- 6.2k
- 分支
- 937
- 平均合併
- 6 分鐘
- 30 天內合併 PR
- 3
描述
My code use some preview feature, such as string template.
the code likes below
```java
throw new IllegalArgumentException(STR."place:\{placeOrg.getName()},\{yearMonth}");
```
the error message is below
```
google-java-format failed. Does SchedulingAutomateFacade.java have syntax errors?
```
I worked with IntelliJ IDEA 2023.2.2
Does anyone can help me to solve this problem?
Thanks
貢獻指南
研究方向
在啟用預覽功能的 IntelliJ IDEA 2023.2.2 和 JDK 21 中,使用 SchedulingAutomateFacade.java 裡的 string-template 範例重現此失敗。首先檢查 google-java-format 如何處理此語法;當檔案能夠成功格式化且不出現語法錯誤訊息時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- java
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100