redhat-developer / redhat-developer/vscode-java
vscode-java fails to build project with pom-type dependency
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
I am attempting to follow https://www.graalvm.org/latest/reference-manual/python/ in VSCode, but the Java Language Support for VSCode appears to be having some difficulty. Namely, it thinks the project cannot be built, while ./gradlew build succeeds just fine.
Environment
- Operating System: macOS 13.6.1 (22G313)
- JDK version:
openjdk 21.0.2 2024-01-16
OpenJDK Runtime Environment Homebrew (build 21.0.2)
OpenJDK 64-Bit Server VM Homebrew (build 21.0.2, mixed mode, sharing) - Visual Studio Code version: 1.87.2 (Universal)
- Java extension version: v1.28.1
- Gradle 8.5
Steps To Reproduce
git clone https://github.com/kalaracey/graalpy-vscode-issue.git- Open graalpy-vscode-issue in VSCode
- Wait for the automatic "Opening Java Projects" to finish
Current Result
VSCode's Problems tab has two problems:
- Archive for required library: '/Users/kal/.gradle/caches/modules-2/files-2.1/org.graalvm.polyglot/python-community/23.1.2/2534a71914ae30007251d1f91f67bb5b5b3431d/python-community-23.1.2.pom' in project 'app' cannot be read or is not a valid ZIP file
- The project cannot be built until build path errors are resolved
Expected Result
No problems, given that ./gradlew build succeeds.
Additional Informations
/Users/kal/.gradle/caches/modules-2/files-2.1/org.graalvm.polyglot/python-community/23.1.2/2534a71914ae30007251d1f91f67bb5b5b3431d/python-community-23.1.2.pom is the only file in its directory.
Outputs from various VSCode tasks:
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 graalpy-vscode-issue 复现用例以及 Java Language Server、Build Server for Gradle 和 Gradle for Java 的日志开始。跟踪依赖项 python-community-23.1.2.pom 的处理方式;完成的标准是,在 VSCode 中打开项目不会产生 build path 问题,同时 ./gradlew build 仍能成功执行。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- build-system, developer-experience, devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100