redhat-developer / redhat-developer/vscode-java

vscode-java fails to build project with pom-type dependency

未關閉
#3,555 29 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
TypeScript
星號
2.3k
分支
547
平均合併
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
  1. git clone https://github.com/kalaracey/graalpy-vscode-issue.git
  2. Open graalpy-vscode-issue in VSCode
  3. Wait for the automatic "Opening Java Projects" to finish

Java Language Server log

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
Screenshot 2024-03-29 at 11 15 05 AM
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:

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。