google / google/google-java-format

google-java-format doesn't work in intellij idea,when i upgrad to jdk 21 with enable preview feature!~

Aperta
#973 5 commenti 16 reazioni 0 assegnatari Vedi su GitHub
IntelliJ
Lingua principale
Java
Stelle
6.2k
Fork
937
Merge medio
6m
PR unite (30g)
3

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.