redhat-developer / redhat-developer/vscode-java
"Classpath is incomplete" warning with Maven project
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
I get the "Classpath is incomplete" popup warning, but can't seem to figure out the magic combination of rain dances required to make it "work".
Environment
- Operating System: Mac OS 10.13.6
- JDK version: 1.8.0_144
- Visual Studio Code version: 1.27.2
- Java extension version: 0.3.0
Steps To Reproduce
- Create a blank maven project in an empty folder using the context menu "Generate from Maven Archetype"
- Open the generated
App.java
Sample project attached
threadtest.zip
The only relevant log entry in server log is:
!ENTRY org.eclipse.jdt.ls.core 1 0 2018-09-27 11:53:20.416
!MESSAGE Classpath is incomplete. Only syntax errors will be reported for file:///<REDACTED>/threadtest/src/main/java/threadtest/App.java
Current Result
VS Code pops up the "Classpath is incomplete" warning
Expected Result
Based on the suggestions here, I expected to not get this warning. It's worth noting however, that the language on this page is a little confusing. Particularly this:
Whenever a java file is opened, that does not belong to a project
VS Code doesn't have a concept of a "project". Are you talking about a Maven project? Folks new to either VS Code or your extension (like me) might be confused by what this means (in-fact I am still confused, because I think I have a project but presumably I don't)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
添付されたthreadtest.zipと生成されたApp.javaから始め、サーバーログのエントリを、リンク先の「Classpath is incomplete」警告に関するガイダンスと比較します。可能であれば、記載されているVS Code、Java extension、JDK、macOSのバージョンを使用して警告を再現します。空のMavenプロジェクトがポップアップなしで開けば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- build-system, devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 25/100