Old dependencies do not get removed

未關閉 適合新手
#133 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
62/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
java, rust

研究方向

此錯誤位於 Rust 擴充功能的下載邏輯中,安裝新版本後,它本應刪除過時的 jdtls、lombok 和 debugger 資料夾。請先找出擴充功能解析並下載這些相依項目的位置,再檢查下載成功後執行的清理步驟。重現方法是:將工作目錄中的某個 jar 重新命名為較舊的版本,重新啟動伺服器,並確認舊檔案已被刪除。當過時版本被刪除且最新版本仍能正常載入時,即視為完成。

由索引模型根據 Issue 內容生成。

描述

What happened?

When testing the changes from #132 I noticed that the extension consistently fails to delete the old versions of the dependencies (jdtls, lombok, debugger).
Reproduce like this:

  • find the extension work-dir, I am on MacOS so for me this is ~/Library/Application Support/Zed/extensions/work/java
  • run the extension with default configuration options
  • there should be folders debugger, jdtls, lombok there. Pick one of them and rename the file there to be another version, so e.g. cd debugger && mv com.microsoft.java.debug.plugin-0.53.2.jar com.microsoft.java.debug.plugin-0.52.2.jar
  • restart the language server

You should see the latest version being downloaded and the extension will work correctly, however the renamed file remains in the directory, as far as I can tell indefinitely.

What did you expect to happen?

After the new version has been downloaded successfully, the old version should be deleted.

Environment

Zed: 0.212.5
Platform: macOS Sequoia 15.7.1
Java Extension version: Latest main from this repo

主要語言
Rust
星號
225
分支
47
平均合併
3 小時
30 天內合併 PR
5

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

zed-extensions/java 的其他 Issue

查看 zed-extensions/java 的全部 Issue

相似的 Issue

更多 Rust Issue

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

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