Title: Not formatting file on save in Intellij 2023.1 · Issue #929 · google/google-java-format · GitHub
Open Graph Title: Not formatting file on save in Intellij 2023.1 · Issue #929 · google/google-java-format
X Title: Not formatting file on save in Intellij 2023.1 · Issue #929 · google/google-java-format
Description: My Java files are not being formatted on save, only when I do a reformat manually. I can see that the google-java-format plugin is running when I save the file (it is quickly showing in the status bar), but the file is not reformatted. I...
Open Graph Description: My Java files are not being formatted on save, only when I do a reformat manually. I can see that the google-java-format plugin is running when I save the file (it is quickly showing in the status ...
X Description: My Java files are not being formatted on save, only when I do a reformat manually. I can see that the google-java-format plugin is running when I save the file (it is quickly showing in the status ...
Opengraph URL: https://github.com/google/google-java-format/issues/929
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Not formatting file on save in Intellij 2023.1","articleBody":"My Java files are not being formatted on save, only when I do a reformat manually. I can see that the google-java-format plugin is running when I save the file (it is quickly showing in the status bar), but the file is not reformatted. I cannot find any logs on this.\r\n\r\n**My setup**\r\n* Intellij 2023.1 (Build #IU-231.8109.175, built on March 28, 2023)\r\n* google-java-format plugin 1.16.0.1\r\n* Activated \"Reformat code\" and \"Optimize imports\" under settings -> Tools -> actions on save\r\n*I have imported the [intellij-java-google-style](https://raw.githubusercontent.com/google/styleguide/gh-pages/intellij-java-google-style.xml) file under settings -> code style -> Scheme. \r\n* Runtime version: 17.0.6+10-b829.5 aarch64\r\n* VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.\r\n\r\nI have setup custom VM options as follows\r\n```\r\n-Xmx3072m\r\n-Dsplash=true\r\n--add-opens=java.base/java.lang=ALL-UNNAMED\r\n--add-opens=java.base/java.util=ALL-UNNAMED\r\n--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED\r\n--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED\r\n--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED\r\n--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED\r\n--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED\r\n--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED\r\n```","author":{"url":"https://github.com/alexandernajafi","@type":"Person","name":"alexandernajafi"},"datePublished":"2023-03-29T13:09:54Z","url":"https://github.com/google/google-java-format/issues/929"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:abd45407-d9b6-121e-1840-e81831c74dc9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2BC:BD02F:238685:300B25:6AFBAF4A |
| html-safe-nonce | 2810e91b08a7e136d2e1808acd7eb12765b9bddf6aa3c590f7d3836b6f363ac4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkJDOkJEMDJGOjIzODY4NTozMDBCMjU6NkFGQkFGNEEiLCJ2aXNpdG9yX2lkIjoiMTA5MTkzNDc5NjE1OTYyNzA4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d5c3210833f95cc48daa9e2b156de26c03e41c6fceeebbf11984d7ed49cca0a9 |
| hovercard-subject-tag | issue:1645782366 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/google/google-java-format/929/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5cf78d3855fc83310d34584f754549126161608d2d5c94ddc22952034a7e34a/google/google-java-format/issues/929 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5cf78d3855fc83310d34584f754549126161608d2d5c94ddc22952034a7e34a/google/google-java-format/issues/929 |
| og:image:alt | My Java files are not being formatted on save, only when I do a reformat manually. I can see that the google-java-format plugin is running when I save the file (it is quickly showing in the status ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alexandernajafi |
| hostname | github.com |
| expected-hostname | github.com |
| None | e25fbd830d3e6ad0e8935c105cf4fdc70c593dffcd27bb45b790ae4fece5ea55 |
| turbo-cache-control | no-preview |
| go-import | github.com/google/google-java-format git https://github.com/google/google-java-format.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 35448780 |
| octolytics-dimension-repository_nwo | google/google-java-format |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35448780 |
| octolytics-dimension-repository_network_root_nwo | google/google-java-format |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 08c8f17f9d27054a108b8b6254e405de0151f660 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width