redhat-developer / redhat-developer/vscode-java
VSCode Java doesn't handle .classpath files properly
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
Environment
- Operating System: Windows
- JDK version: 1.8.0_171
- Visual Studio Code version: 1.25.1
- Java extension version: 0.29.0
Steps To Reproduce
- Copy, write, or otherwise create an Eclipse-style
.classpathfile, specifying asrcdirectory. - Create an empty
foo.javafile in that directory
Current Result
Popup: foo.java isn't on the classpath.
Expected Result
No popup, working go-to-definition and similar project handling.
Additional Information
It is not entirely clear from the website that 'More information' leads to what precisely needs to be copied for the vscode-java to properly build the classpath, so if the answer turns out to be "you need more than just the .classpath", the issue just changes to "the documentation on 'Classpath is incomplete' does not provide sufficient information to actually resolve the issue."
(Also, note that the error is different from that one given when there is no classpath present. vscode-java clearly sees that there's a file there, but isn't reading it correctly.)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
添付されたbugrepro.zipから始め、Eclipse-styleの.classpathファイル、srcディレクトリ、空のfoo.javaを使用して動作を再現します。VSCode Java extensionが.classpathと「Classpath is incomplete」の情報をどのように処理するかを調査します。完了条件は、ポップアップが表示されなくなり、プロジェクトでgo-to-definitionが機能することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, typescript
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100