forcedotcom / salesforcedx-vscode

Salesforce Extensions for VS Code
https://developer.salesforce.com/tools/vscode
BSD 3-Clause "New" or "Revised" License
953 stars 406 forks source link

Change Default Org does not show the already connected orgs. Unable to change the Default Org #5524

Closed 1eandro closed 6 months ago

1eandro commented 6 months ago

Summary

Short summary of what is going on or to provide context. The button 'Change Default Org' is not working.

I'm connected to PROD and UAT. My default org is PROD. I attempt to set it to UAT but the UAT org (or any other org I'm connected to) does not appear.

Steps To Reproduce:

  1. You click in the 'Change Default Org' button, in the bottom status bar, on the left image

  2. Then this appears, only the '+' options. The UAT org is not listed there, so you're unable to change it image

Expected result

It should list the UAT org, or any other org I'm connected to.

Here you can see I'm connected to other orgs image

Actual result

The connected orgs does not appear.

Additional information

I've already attempted to reconnect, close the vscode, restart the computer, connect again. Nothing of this worked

There's no other vscode extension installed, it's a brand new vscode profile.

Salesforce Extension Version in VS Code: Salesforce Extension Pack (Expanded) - v60.1.2 extension ID: salesforce.salesforcedx-vscode-expanded

SFDX CLI Version: @salesforce/cli/2.32.8 win32-x64 node-v20.11.1

OS and version: Windows 10 Enterprise

VS Code version: Version: 1.80.1 image

1eandro commented 6 months ago

The problem was solved after reverting the version of the extension "Salesforce CLI Integration" from "v60.1.2" to "v59.8.0"

AnanyaJha commented 6 months ago

Hi @1eandro , thanks for reporting this issue! Few questions to help us debug:

Are you able to update the version of VS Code you're working with? You're on a much older version of the Salesforce Extensions that we're no longer making changes to.

Thanks so much!

CristiCanizales commented 6 months ago

Hi @1eandro, as Ananya said, you need to update your vscode version. As mentioned in #5390, starting from v59.15.0, our minimum supported version for vscode is 1.82.0. Please update and let us know if it works again. Thanks!

1eandro commented 6 months ago

Thanks @AnanyaJha and @CristiCanizales, the update of the vscode would take some time due it is for professional use and it takes some time to get approved in our CMDB.

I found the solution by reverting the version a bit, as per my last comment.

I've also created a profile with versions pinned, so the whole ecosystem works as a charm.

Lesson learned: Vscode and SF extensions are constantly updated, so or you keep it up to date, or you pin some specific version where everything works fine