Skip to content

Tool version is being added to settings even though it does not exist #1443

@juliane-cap

Description

@juliane-cap

Actual behavior

ide install java 18
JAVA_VERSION=18 has been set in SETTINGS@C:\Users\<user>\projects\Test\settings\ide.properties
Version 18 for tool java does not exist in edition java.

Error: IDEasy failed with exit code 1

Reproduce

  1. ide install java 18

Expected behavior

The error should've been caught earlier, so the JAVA_VERSION wouldn't have been overwritten by a non-existing version.

IDEasy status

IDE_ROOT is set to ~/projects
IDE_HOME is set to ~/projects/project
You are online.
Your settings are up-to-date.
Your version of IDEasy is 2025.07.002.
Your are using the latest version of IDEasy and no update is available.
Your operating system is windows(10.0)@x64 [Windows 11@amd64]
Successfully completed ide (status)

Related/Dependent issues

No response

Comments/Hints

The version is being set within the run() method of the InstallCommandlet. Afterwards, the installation is attempted, but will fail. The non-existing version is still set in the settings.

if (versionIdentifier != null) {
commandlet.setVersion(versionIdentifier, false);
}
commandlet.install(false);

Metadata

Metadata

Assignees

Labels

installinstallation process of IDE + tools and install commandlet

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions