Newly created OAuth connection not visible if Manage Connections dialogue invoked during SFDX project creation

Issue #2237 resolved
René Görgens created an issue

Hi Scott,

On my machine, some time elapses (a few seconds) between the initiation of a new SFDX project and the display of the message “You may now choose an existing org, authorize a new org, or create a new scratch org for this project.“.

If I invoke the Manage Connections dialogue before the aforementioned message is displayed and I create a new OAuth connection, then the new OAuth connection is not displayed, and all OAuth connections are showing in red. Neither Refresh Salesforce CLI Connections nor Force Refresh Salesforce CLI Connections helps.

The new OAuth connection is displayed once I’ve exited the Manage Connections dialogue and confirmed the aforementioned message.

Details:

  • Create a new Illuminated Cloud SFDX Project project (generate manifest and OST). Click Create
  • Once the new window is opened, quickly enter the Manage Connections dialogue
  • Authorise a new connection:

  • The new connection is not displayed, while all OAuth connections show up in red. Neither Refresh Salesforce CLI Connections nor Force Refresh Salesforce CLI Connections helps:

  • As mentioned above, normally I was able to see/use the new OAuth connection once I’ve exited the Manage Connections dialogue and confirmed the aforementioned message.
  • While reproducing the issue, I encountered an additional problem: The newly added connection is missing a label:

  • Causing the dialogue to enter an invalid state, which is maintained even after all projects are closed:

  • However the dialogue enters a valid state after IDE restart (the label is populated):

  • Depending on the timing of the actions, there can be more or less quirky behaviour. I’ve seen the CLI connection refresh being kicked off once (as opposed to not being kicked off), and the newly added connection being properly displayed once (as opposed to not being displayed) while all other OAuth connections were still shown in red.

Obviously, I should wait until the message is displayed.

Comments (3)

  1. Scott Wells repo owner

    Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.

  2. Log in to comment