robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[BUG] Cannot deselect profile in VSCode after removing profiles from `robot.toml`

Open Noordsestern opened this issue 6 months ago • 0 comments

Describe the bug When I have a profile activated in VSCode and remove all profiles from robot.toml, the profile remains active in VSCode. When I execute a test case, an error message is printed that no profile with the specified name is found. The execution passes, but the error message is messing. Also, the profile cannot get de-selected in the context menu.

Steps To Reproduce

  1. Create robot.toml with 1 profile
  2. Select the profile in VSCode context menu
  3. Delete the profile from robot.toml
  4. Try to deselct profile at VSCode context menu -> not possible. Clicking on "Select" at the profiles menu does not open selection dialog (likely, because there are no profile to select from)
  5. Execute a test case -> an error message as logged in the beginning of the execution that the specified profile cannot be found.

Expected behavior Let me deselect the profile, even the selected profile does not exist anymore.

Additional context Workaround is to create tmp-profile, open the selection menu and deselct all profiles. then delete the tmp-profile from robot.toml

It happened to my when switching between different GIT branches, were a branch already held profiles, but another did not.

Noordsestern avatar Aug 29 '25 11:08 Noordsestern