redhat-developer / redhat-developer/vscode-java
“Failed to configure project” when resources nested inside source folder
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
The VS Code Java plugin cannot import a project from a build.gradle file that places a test resources directory inside a test source directory. Gradle itself, however, supports this.
Environment
- Operating System: macOS 10.15.6
- JDK version: OpenJDK 14.0.2
- Visual Studio Code version: 1.48.1
- Java extension version: 0.65.0
Steps To Reproduce
Populate build.gradle with the following simple configuration:
plugins {
id 'java'
}
sourceSets {
test.java.srcDirs = ['test']
test.resources.srcDirs = ['test/res']
}
Current Result
The VS Code plugin will produce a Failed to configure project error (with no further information, AFAICT).
However, gradle test will execute perfectly happily.
Expected Result
It should import the project with test/res copied to the test resources folder, just as gradle itself does.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
build.gradle に示されているプロジェクト構成を再現し、その後、VS Code Java plugin によるネストされたテストリソースの Gradle インポート処理を追跡します。プロジェクトが「Failed to configure project」エラーなしでインポートされ、test/res がテストリソースフォルダーにコピーされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100