Skip to content

[Bug]: runCurrentStatement fails with "Internal Parser Error" on macOS ARM64 - webview not initializing #22091

@brian-aroflo

Description

@brian-aroflo

Description

MSSQL Extension Version: 1.42.2

VS Code Version: 1.119.0 (Universal)

OS: macOS Darwin arm64 25.4.0 (Apple M5 Pro)

Steps to reproduce:

  1. Open a new untitled SQL file
  2. Connect to any SQL Server instance
  3. Type any multi-line or table-referencing statement e.g. SELECT * FROM TableName WHERE id = 1
  4. Place cursor anywhere in the statement
  5. Run mssql.runCurrentStatement (MS SQL: Run Current Statement)

Expected: Statement at cursor executes and results appear

Actual: "Failed to start query. Internal Parser Error" is shown

Additional context:

  • SELECT 1 on a single line works fine
  • Any multi-line statement or real table reference fails 100% of the time
  • Highlighting the same statement and running executeQuery works fine
  • MSSQL output log shows [info] Started query execution followed immediately by [warning] Attempted to write message but webview is not set then silence
  • Manually opening the results pane gives: Cannot read properties of undefined (reading 'toString')
  • Tested on multiple extension versions (1.32, 1.40, 1.42.2) — all affected
  • Fresh reinstall of extension does not fix it
  • Issue is specific to runCurrentStatement — regular query execution works

Steps to Reproduce

  1. Open a new untitled SQL file
  2. Connect to any SQL Server instance
  3. Type any multi-line or table-referencing statement e.g. SELECT * FROM TableName WHERE id = 1
  4. Place cursor anywhere in the statement
  5. Run mssql.runCurrentStatement (MS SQL: Run Current Statement)

Affected Area

  • Connection dialog (SQL Server | Azure browse/Fabric browse)
  • Query editor
  • Query results panel
  • Object Explorer
  • GitHub Copilot integration
  • Preview/Edit data
  • Table Designer
  • Schema Designer
  • Schema Compare
  • Local SQL Server Container provisioning
  • SQL database in Fabric provisioning
  • DACPAC/BACPAC export/import
  • SQL Database projects
  • Query Plan Visualizer
  • Other (please describe below)

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

No response

Environment Information

MSSQL Extension Version: 1.42.2
VS Code Version: 1.119.0 (Universal)
OS: macOS Tahoe arm64 26.4.1

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