Skip to content

Fix user commnication when switching the Java version from the default to the required one #1689

@lubska

Description

@lubska

Feature idea

Description

When execution the command:
ide set-version java <version_number>
the CLI shows the following message:
To install that version call the following message: ide install java
If the user follows this recommendation and runs:
ide install java
user recieve:
Version <version_number> of tool java is already installed.
Running:
ide get-version java
shows the desired Java version, meaning the ide set command works correctly.

Problem

The current CLI messaging is misleading: it suggests the version is not installed, even though ide set-version command successfully switches to the required Java version.

Requirements

  1. Update user communication in the CLI during ide set-version java <version_number>: remove the message suggestion the user must run ide install java
  2. Confirm that the action was successful and display a message that ide set-version java <version_number> is already set.
  3. Ensure consistency across other tools if similar messaging occurs.

Expected result

  1. CLI no longer shows misleading messages when commad ide set-version is used.
  2. Users clearly see that the version has been set successfully without unnecessary installation instructions.
  3. Tool installation and version switching behave as intended.
Image

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions