redhat-developer / redhat-developer/vscode-java
"IllegalArgumentException: Path must include project and resource name" when unloadable .project file is present
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
Java extension is not working when opening some folders (it works for soem others).
For instance when opening the folder examples of https://github.com/apache/camel-k/tree/master/examples
there is this error in output:
[Error - 3:33:47 PM] May 13, 2020 3:33:47 PM An internal error occurred during: "Initialize workspace".
Path must include project and resource name: /examples
java.lang.IllegalArgumentException: Path must include project and resource name: /examples
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:66)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2122)
at org.eclipse.core.internal.resources.Container.getFolder(Container.java:205)
at org.eclipse.jdt.ls.core.internal.managers.StandardProjectsManager.registerWatchers(StandardProjectsManager.java:311)
at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer$1.run(JDTLanguageServer.java:277)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Environment
- Operating System: Fedora 31
- JDK version: Java 8
- Visual Studio Code version: 1.45.0
- Java extension version: 0.61.0
Steps To Reproduce
- clone locally https://github.com/apache/camel-k/
- in VS Code, File -> Open Folder...
- select the examples folder inside the cloned repository
- Open one of the Java files
--> stack trace in output log
--> several errors reported in files
[Please attach a sample project reproducing the error]
full log with trace activated:
https://gist.github.com/apupier/ca016099587a7730745d1841b094f7e6
Current Result
Expected Result
Additional Informations
it was working few weeks/months ago seems not, i tried with VS Code 1.42.1 and extension 0.55.1 and there was already the issue.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
VS Code で apache/camel-k の examples フォルダーを開き、リンクされた完全なログを確認して失敗を再現します。スタックトレースの StandardProjectsManager.java:311 と JDTLanguageServer.java:277 から確認を始めます。フォルダーを開いても IllegalArgumentException や関連するファイルエラーが発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100