From 924b5f81c60bd418e4d1f4aeb0ee34e7ce06a3f1 Mon Sep 17 00:00:00 2001 From: vivu001 Date: Wed, 29 Jul 2026 15:29:23 +0200 Subject: [PATCH 1/2] #2190: preserve Python installation when version file missing --- .../com/devonfw/tools/ide/tool/LocalToolCommandlet.java | 6 ++++++ .../main/java/com/devonfw/tools/ide/tool/python/Python.java | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java b/cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java index 8176bf8943..eaa277560d 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java +++ b/cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java @@ -197,6 +197,12 @@ public ToolInstallation installTool(ToolInstallRequest request) { } else if (!isIgnoreMissingSoftwareVersionFile()) { LOG.warn("Deleting corrupted installation at {}", installationPath); fileAccess.delete(installationPath); + } else { + // Version file missing but tool allows this - restore it and preserve installation + LOG.warn("Version file missing at {} - restoring it for tool {}", toolVersionFile, this.tool); + // Restore the missing file + this.context.writeVersionFile(resolvedVersion, installationPath); + return createToolInstallation(installationPath, resolvedVersion, false, processContext, additionalInstallation); } } } diff --git a/cli/src/main/java/com/devonfw/tools/ide/tool/python/Python.java b/cli/src/main/java/com/devonfw/tools/ide/tool/python/Python.java index f5fc45d352..818426601d 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/tool/python/Python.java +++ b/cli/src/main/java/com/devonfw/tools/ide/tool/python/Python.java @@ -75,6 +75,12 @@ protected boolean isIgnoreSoftwareRepo() { return true; } + @Override + protected boolean isIgnoreMissingSoftwareVersionFile() { + + return true; + } + @Override public ToolRepository getToolRepository() { From 6f5402b730e5660db69843e7ea41ad9090161c19 Mon Sep 17 00:00:00 2001 From: Duc Vu <43269393+vivu001@users.noreply.github.com> Date: Mon, 3 Aug 2026 08:27:03 +0200 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 2421cfdca1..4832524454 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -6,6 +6,7 @@ This file documents all notable changes to https://github.com/devonfw/IDEasy[IDE Release with new features and bugfixes: +* https://github.com/devonfw/IDEasy/issues/2190[#2190]: Fix IDEasy destroys python installation * https://github.com/devonfw/IDEasy/issues/2126[#2126]: Fix language selection dropdown * https://github.com/devonfw/IDEasy/issues/2039[#2039]: IDE logo not shown in mac task bar * https://github.com/devonfw/IDEasy/issues/2176[#2176]: Support 7z archive extraction