Skip to content

Cannot update Intellij on linux: FileAlreadyExistsException #910

@hohwille

Description

@hohwille
$ ide intellij
Updates are available for the settings repository. If you want to pull the latest changes, call ide update.
Expected folder was not found at /home/hohwille/projects/IDEasy/settings/intellij/workspace/setup
Start: Configuring workspace main for IDE intellij
Successfully ended step 'Configuring workspace main for IDE intellij'.
Trying to download intellij-2024.3.1.1-linux-x64.tar.gz from https://download.jetbrains.com/idea/ideaIC-2024.3.1.1.tar.gz
Downloading 100% │███████████████████████████████████████████████████████████│ 886/886MiB (0:00:35 / 0:00:00) 25.3MiB/s
Checksum b183b126de2cd457475eea184874b5da2fa33ba5ae2ff874bdc8c1d534156428 is correct.
Extracting TAR file /home/hohwille/Downloads/ide/default/intellij-2024.3.1.1-linux-x64.tar.gz to /home/hohwille/projects/_ide/tmp/extract-intellij-2024.3.1.1-linux-x64.tar.gz
Extracting 100% │████████████████████████████████████████████████████████████│ 886/886MiB (0:00:19 / 0:00:00) 46.7MiB/s
Step 'ide (intellij)' failed: java.lang.RuntimeException: java.nio.file.FileAlreadyExistsException: /home/hohwille/projects/IDEasy/software/intellij
 Step 'Install intellij (*)' failed: java.lang.RuntimeException: java.nio.file.FileAlreadyExistsException: /home/hohwille/projects/IDEasy/software/intellij
2 step(s) failed out of 4 steps.
An unexpected error occurred!
We are sorry for the inconvenience.
Please check the error below, resolve it and try again.
If the error is not on your end (network connectivity, lack of permissions, etc.) please file a bug:
https://github.com/devonfw/IDEasy/issues/new?assignees=&labels=bug&projects=&template=bug.md&title=RuntimeException%3A+java.nio.file.FileAlreadyExistsException%3A+%2Fhome%2Fhohwille%2Fprojects%2FIDEasy%2Fsoftware%2Fintellij
java.lang.RuntimeException: java.nio.file.FileAlreadyExistsException: /home/hohwille/projects/IDEasy/software/intellij
        at com.devonfw.tools.ide.io.FileAccessImpl.symlink(FileAccessImpl.java:484)
        at com.devonfw.tools.ide.io.FileAccess.symlink(FileAccess.java:88)
        at com.devonfw.tools.ide.tool.LocalToolCommandlet.install(LocalToolCommandlet.java:95)
        at com.devonfw.tools.ide.tool.ToolCommandlet.runTool(ToolCommandlet.java:166)
        at com.devonfw.tools.ide.tool.ToolCommandlet.runTool(ToolCommandlet.java:152)
        at com.devonfw.tools.ide.tool.ide.IdeToolCommandlet.runTool(IdeToolCommandlet.java:55)
        at com.devonfw.tools.ide.tool.ToolCommandlet.run(ToolCommandlet.java:130)
        at com.devonfw.tools.ide.tool.ide.IdeToolCommandlet.run(IdeToolCommandlet.java:49)
        at com.devonfw.tools.ide.context.AbstractIdeContext.applyAndRun(AbstractIdeContext.java:867)
        at com.devonfw.tools.ide.context.AbstractIdeContext.run(AbstractIdeContext.java:798)
        at com.devonfw.tools.ide.cli.Ideasy.runOrThrow(Ideasy.java:89)
        at com.devonfw.tools.ide.cli.Ideasy.run(Ideasy.java:52)
        at com.devonfw.tools.ide.cli.Ideasy.main(Ideasy.java:29)
        at java.base@21.0.2/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)
Caused by: java.nio.file.FileAlreadyExistsException: /home/hohwille/projects/IDEasy/software/intellij
        at java.base@21.0.2/sun.nio.fs.UnixFileSystemProvider.createSymbolicLink(UnixFileSystemProvider.java:513)
        at java.base@21.0.2/java.nio.file.Files.createSymbolicLink(Files.java:1069)
        at com.devonfw.tools.ide.io.FileAccessImpl.symlink(FileAccessImpl.java:476)
        ... 13 more


Error: IDEasy failed with exit code 255

Metadata

Metadata

Assignees

Labels

intellijIntelliJ IDE from Jet-Brainsupdaterelated to updating software or the entire ide

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions