Skip to content

Shell for VS Code Initialisation Error when running in WSL2 Ubuntu #75

Open
@RTaylor5486

Description

@RTaylor5486

Hello,

Windows: 11 Enterprise 10.0.26100
WSL2: Ubuntu 22.04.5 LTS

VSCode running in windows, using WSL extension. MYSQL Shell extension running in Ubuntu's vs-code extension host.

Since version 1.19.10, the extension has been unable to initialise and is unusable. After a short investigation, the log file located in WSL2 at ~/.vscode-server/data/logs/xxxxxxxxxxxxxxx/exthost2/remoteexthost.log contains the following:

2025-06-06 10:18:44.086 [error] ReferenceError: sessionStorage is not defined
        at <static_initializer> (/home/****/.vscode-server/extensions/oracle.mysql-shell-for-vs-code-1.19.12-linux-x64/out/main.cjs:14:13094)
        at Object.<anonymous> (/home/****/.vscode-server/extensions/oracle.mysql-shell-for-vs-code-1.19.12-linux-x64/out/main.cjs:14:10706)
        at Module._compile (node:internal/modules/cjs/loader:1529:14)
        at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
        at Module.load (node:internal/modules/cjs/loader:1275:32)
        at Module._load (node:internal/modules/cjs/loader:1096:12)
        at e._load (file:///home/****/.vscode-server/bin/258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3/out/vs/workbench/api/node/extensionHostProcess.js:225:1509)
        at t._load (file:///home//****/.vscode-server/bin/258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3/out/vs/workbench/api/node/extensionHostProcess.js:180:22628)
        at r._load (file:///home/****/.vscode-server/bin/258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3/out/vs/workbench/api/node/extensionHostProcess.js:172:22062)
        at Module.require (node:internal/modules/cjs/loader:1298:19)
        at require (node:internal/modules/helpers:182:18)
        at DJ.Cb (file:///home/****/.vscode-server/bin/258e40fedc6cb8edf399a463ce3a9d32e7e1f6f3/out/vs/workbench/api/node/extensionHostProcess.js:211:1253)

Currently the only workaround is to downgrade the plugin to version 1.19.9 or below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions