redhat-developer / redhat-developer/vscode-java
Java Formatter is broken somehow in my workspace
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
So I played around trying to use a custom formatter for Java. At some point my workspace broke and now I cannot format any Java code.
I tried to remove every setting related to formatting. I used "clean the Java language server workspace"
I deleted workspace caches in %userprofile%\AppData\Roaming\Code
Nothing works. Now I get the window "There is no formatter for Java installed" whenever I try to format some Java file.
I tried to set up a formater again. I added the file, used these settings:
"java.format.settings.url": ".vscode/GoogleStyle.xml",
And now I can run "Open Java Formatter Setting Wth Preview ", but I still cannot format my code.
Also I created another small project with one Java file and there the formatter works.
Environment
- Operating System: Windows 11
- JDK version: 11 and 17
- Visual Studio Code version: 1.71.2
- Java extension version: 1.11.0
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
この issue にはソースファイル、テスト、エントリーポイントが記載されていません。まず影響を受けている workspace で失敗を再現し、動作しているプロジェクトと比較して、Java formatter の設定と拡張機能の環境を調べてください。影響を受けている workspace で Java ファイルが正常にフォーマットされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100