microsoft / vscode-azure-account

Common Azure Login extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account
Other
138 stars 131 forks source link

Latest v0.12.0 Release Is Broken by Dependency Loops #966

Closed MBR41 closed 5 months ago

MBR41 commented 6 months ago

Version: 1.80.2 (Universal) Commit: 2ccd690cbff1569e4a83d7c43d45101f817401dc Date: 2023-07-27T21:05:41.366Z (9 mos ago) Electron: 22.3.14 ElectronBuildId: 22695494 Chromium: 108.0.5359.215 Node.js: 16.17.1 V8: 10.8.168.25-electron.0 OS: Darwin arm64 23.5.0

Are you connected to a proxy server? No

Steps to Reproduce:

  1. Install vscode fresh with no extensions
  2. Install the Azure Accounts extension
  3. The error The following extensions contain dependency loops and have been disabled: 'ms-azuretools.vscode-azureresourcegroups', 'ms-vscode.azure-account' appears and both extensions are disabled. The extensions cannot be uninstalled either as they depend on each other.

Workaround:

Screenshot 2024-05-15 at 11 37 19 AM

alexweininger commented 6 months ago

Hi @MBR41, I'm unable to reproduce this error. Can you please try again? The only thing I can think that might cause this is if an older version of the Azure Resources extension is being installed that still depends on Azure Account. Can you make sure the Azure Resources extension is updated to the latest version (v0.9.0)?

image

With the latest versions of each extension, the only dependencies are that Azure Account depends on Azure Resources.

MBR41 commented 6 months ago

Hi @alexweininger thank you for the response. I tried again and can still reproduce the error. Azure Resources 0.7.5 is installed automatically when Azure Account is installed.

I don't have the option to install 0.9.0:

Screenshot 2024-05-15 at 1 46 12 PM

alexweininger commented 6 months ago

I don't have the option to install 0.9.0:

Screenshot 2024-05-15 at 1 46 12 PM

Oh, I just noticed you're on v1.80 of VS Code from June of last year. I believe the issue will be fixed if you update VS Code to a newer version. Could you try updating to the latest version and try again?

aedans-womp commented 6 months ago

Updating to vscode v1.89 fixed the issue for me, but it was rather frustrating to wake up to find that all of my azure extensions were disabled and I couldn't uninstall azure account or azure resources due to circular dependencies.

alexweininger commented 6 months ago

Updating to vscode v1.89 fixed the issue for me, but it was rather frustrating to wake up to find that all of my azure extensions were disabled and I couldn't uninstall azure account or azure resources due to circular dependencies.

Sorry about that. We are deprecating Azure Account and need a way to migrate users to Azure Resources.

MBR41 commented 6 months ago

Sorry about that. We are deprecating Azure Account and need a way to migrate users to Azure Resources.

I've updated vscode to 1.89.1 and it's working great with Azure Account 0.12.0 and Azure Resources 0.9.0.

Should I uninstall Azure Account now?

alexweininger commented 6 months ago

Should I uninstall Azure Account now?

Yes please! If you don't have any extensions that still depend on Azure Accounts, then uninstall it.

Unrelated, but may I ask which Azure extensions you primarily use, and what do you use them for?