Skip to content

[Bug]: SQL Container Setup hangs on Windows ARM64 #19629

Closed
@cabal95

Description

@cabal95

Description

I didn't exactly expect this to work, but I was hopeful (since there is now an ARM64 version of Windows 11 and Windows Server, I am still holding out hope that Microsoft will surprise us one day with a quiet launch of SQL Server for ARM64).

However, the issue with the extension is that it doesn't detect that you are running on windows and ARM64 so it tries anyway. This results in getting past the "Creating Container" stage and then getting stuck on the "Setting up container" stage. Apparently it can't tell that SQL server in the container failed to start so it just spins there forever waiting.

The bug report is I think two-fold:

  1. Detect if running on Windows and ARM64 and if so bail out before even downloading the SQL docker image.
  2. If the container fails to start for some reason (or in this case, starts and then quickly exits), detect that situation and display an error instead of spinning forever and having to manually clean up the failed docker container.

Steps to Reproduce

  1. Install VS Code
  2. Install MSSQL extension
  3. Go to SQL Server tab on left
  4. Click "Create Local SQL Connection"
  5. Proceed through prompts.
  6. Get stuck on "Setting up container"

Affected Area

  • Connection dialog
  • Query results panel
  • Query editor
  • Object Explorer
  • Table Designer
  • Schema Compare
  • Schema Designer
  • Local container
  • GitHub Copilot integration
  • Query Plan Visualizer
  • Other (please describe below)

If you selected "Other", please describe the affected area

No response

Environment Information

  • VS Code Version: 1.101.0
  • MSSQL Extension Version: 1.33.0
  • Operating System: Windows 11 24H2 Build 26100.4351
  • Connection Type: Local Container

Confirmation

  • I have searched existing issues and couldn't find a match
  • I want to work on this issue

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions