redhat-developer / redhat-developer/vscode-java
“Failed to configure project” when resources nested inside source folder
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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