redhat-developer / redhat-developer/vscode-java

"Starting java language server" processing stops before 100% on workspaces with a non-existing project directory (causing "Classpath is incomplete")

オープン
#1,303 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

classpath
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

The following workspace opens ok and "starting java language server" process finishes at 100%

{
	"folders": [
        {
            "path":"simple-project1"
        },
        {
            "path":"other-existing-dir"
        }
    ]
}

However the one below one stops at 30% because the first project path in the workspace does not exist. This causes also the following error when clicking on the code of Main.java: "Classpath is incomplete: Only syntax errors will be reported":

{
	"folders": [
        {
            "path":"non-existing-dir"
        },    
        {
            "path":"simple-project1"
        },
        {
            "path":"other-existing-dir"
        }
    ]
}
Environment
  • Operating System: Ubuntu 18.04.3 LTS
  • JDK version: 13
  • Visual Studio Code version: 1.42.1
  • Java extension version: 0.57.0 (got from changelog)
Steps To Reproduce
  • First open working-workspace.code-workspace and see the thumbs-up symbol on down-right side.
  • Then open problematic-workspace.code-workspace and see the thumbs-down symbol on down-right side.
Current Result
Expected Result
Additional Informations

code-missing-project-path-issue.tar.gz

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず code-missing-project-path-issue.tar.gz を展開し、VS Code で working-workspace.code-workspace と problematic-workspace.code-workspace を開きます。最初に、存在しないプロジェクトパスで language server の起動を再現し、その後、進捗と診断を動作する workspace と比較します。起動が 100% に達し、Main.java が不完全な classpath を報告しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, typescript, vscode
領域
devtools
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。