Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update vscode failed due to AccessDeniedException: D:\projects\IDEasy\plugins\vscode\angular.ng-template-19.0.3\angular.png #1029

Open
hohwille opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working plugins related to plugins (for Eclipse, Intellij, VSCode, etc.) update related to updating software or the entire ide vscode Microsoft visual studio code windows specific for Microsoft Windows OS

Comments

@hohwille
Copy link
Member

Start: Install vscode
Could not determine file extension from URL https://update.code.visualstudio.com/1.97.0/win32-x64-archive/stable - guess was zip but may be incorrect.
Trying to download vscode-1.97.0-windows-x64.zip from https://update.code.visualstudio.com/1.97.0/win32-x64-archive/stable
Downloading 100% [=================================================================================================================================================================================================================] 141/141MiB (0:00:06 / 0:00:00) 23.6MiB/s
Checksum 0e6aa00e08ed92d9c6efecdb602cfe54f3cf4a004e9d8efa48b1bc24d62f5378 is correct.
Extracting ZIP file C:\Users\hohwille\Downloads\ide\default\vscode-1.97.0-windows-x64.zip to D:\projects\_ide\tmp\extract-vscode-1.97.0-windows-x64.zip
Extracting 100% [==================================================================================================================================================================================================================] 404/404MiB (0:00:07 / 0:00:00) 57.8MiB/s
Installation of vscode failed!
java.lang.IllegalStateException: Failed to delete D:\projects\IDEasy\plugins\vscode
        at com.devonfw.tools.ide.io.FileAccessImpl.delete(FileAccessImpl.java:784)
        at com.devonfw.tools.ide.tool.plugin.PluginBasedCommandlet.postInstall(PluginBasedCommandlet.java:102)
        at com.devonfw.tools.ide.tool.LocalToolCommandlet.install(LocalToolCommandlet.java:98)
        at com.devonfw.tools.ide.tool.ToolCommandlet.install(ToolCommandlet.java:244)
        at com.devonfw.tools.ide.commandlet.AbstractUpdateCommandlet.updateSoftware(AbstractUpdateCommandlet.java:192)
        at com.devonfw.tools.ide.commandlet.AbstractUpdateCommandlet.run(AbstractUpdateCommandlet.java:63)
        at com.devonfw.tools.ide.context.AbstractIdeContext.applyAndRun(AbstractIdeContext.java:915)
        at com.devonfw.tools.ide.context.AbstractIdeContext.run(AbstractIdeContext.java:833)
        at com.devonfw.tools.ide.cli.Ideasy.runOrThrow(Ideasy.java:95)
        at com.devonfw.tools.ide.cli.Ideasy.run(Ideasy.java:59)
        at com.devonfw.tools.ide.cli.Ideasy.main(Ideasy.java:133)
        at java.base@21.0.2/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.nio.file.AccessDeniedException: D:\projects\IDEasy\plugins\vscode\angular.ng-template-19.0.3\angular.png
        at java.base@21.0.2/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:273)
        at java.base@21.0.2/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:104)
        at java.base@21.0.2/java.nio.file.Files.delete(Files.java:1152)
        at com.devonfw.tools.ide.io.FileAccessImpl.deleteRecursive(FileAccessImpl.java:800)
        at com.devonfw.tools.ide.io.FileAccessImpl.deleteRecursive(FileAccessImpl.java:795)
        at com.devonfw.tools.ide.io.FileAccessImpl.deleteRecursive(FileAccessImpl.java:795)
        at com.devonfw.tools.ide.io.FileAccessImpl.delete(FileAccessImpl.java:781)
        ... 11 more

Is this a file locking error?
I do not even have any instance of VSCode running.
There seems no lock on the file and in Windows Explorer I could easily delete the file.
So what is going wrong deleting the file via Java / native image?

@hohwille hohwille added bug Something isn't working plugins related to plugins (for Eclipse, Intellij, VSCode, etc.) update related to updating software or the entire ide vscode Microsoft visual studio code windows specific for Microsoft Windows OS labels Feb 10, 2025
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Feb 10, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working plugins related to plugins (for Eclipse, Intellij, VSCode, etc.) update related to updating software or the entire ide vscode Microsoft visual studio code windows specific for Microsoft Windows OS
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant