redhat-developer / redhat-developer/vscode-java
vscode-java fails to build project with pom-type dependency
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
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:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked graalpy-vscode-issue reproducer and the Java Language Server, Build Server for Gradle, and Gradle for Java logs. Trace how the python-community-23.1.2.pom dependency is handled; done means opening the project in VSCode produces no build-path problems while ./gradlew build continues to succeed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- build-system, developer-experience, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100