You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
In the code the function to remove everything except the newly downloaded version was mentioning that the operation was often failing. That's also the reason why it does not propagate eventual errors. Could this be once again one of the limitation from the extension sandboxing or a logic problem?
I'll try to debug the function and see whether there's a better way to remove specific files that is less prone to failure.
Thanks for reporting.
Activity
tartarughina commentedon Nov 14, 2025
In the code the function to remove everything except the newly downloaded version was mentioning that the operation was often failing. That's also the reason why it does not propagate eventual errors. Could this be once again one of the limitation from the extension sandboxing or a logic problem?
I'll try to debug the function and see whether there's a better way to remove specific files that is less prone to failure.
Thanks for reporting.