google / google/google-java-format

IntelliJ plugin not working

Aperta
#1,130 4 commenti 2 reazioni 0 assegnatari Vedi su GitHub
IntelliJ
Lingua principale
Java
Stelle
6.2k
Fork
937
Merge medio
6m
PR unite (30g)
3

Descrizione

# Summary

Following the [instructions](https://github.com/google/google-java-format/blob/master/README.md#intellij-android-studio-and-other-jetbrains-ides), I'm unable to get the formatter plugin to work.

# Details

I've completed all steps in the instructions:
1. Installed plugin
2. Enabled the plugin in "Settings -> Other Settings -> google-java-format Settings":
![image](https://github.com/user-attachments/assets/138c0e4b-34e4-43a0-adcf-1749706b7335)

3. Updated the configs in "Help > Edit Custom VM Options...":
![image](https://github.com/user-attachments/assets/cf199c81-7e10-40a7-8a9b-c46f52e91bd8)
4. Restarted the IDE

But I still get the following error when attempting to run "Reformat code" command:
![image](https://github.com/user-attachments/assets/d73257fa-bb1a-4ac4-952a-191c3e8f1aa0)

## Environment
- Plugin version: 1.22.0.0
![image](https://github.com/user-attachments/assets/56a3eb43-d702-4a01-8c8d-eb98d669f682)

- IntelliJ version: IntelliJ IDEA 2024.1.3 (Ultimate Edition)

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.