google / google/google-java-format

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

Open
#973 5 comments 16 reactions 0 assignees View on GitHub
IntelliJ
Dominant language
Java
Stars
6.2k
Forks
937
Avg merge
6m
Merged PRs (30d)
3

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.