-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Cannot build working VSIX from WSL2 - native binaries mismatch #9326
Copy link
Copy link
Closed as not planned
Labels
area:buildRelates to building extensions from sourceRelates to building extensions from sourcedependenciesPull requests that update a dependency filePull requests that update a dependency fileide:vscodeRelates specifically to VS Code extensionRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on WindowsHappening specifically on Windowsstale
Metadata
Metadata
Assignees
Labels
area:buildRelates to building extensions from sourceRelates to building extensions from sourcedependenciesPull requests that update a dependency filePull requests that update a dependency fileide:vscodeRelates specifically to VS Code extensionRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavioros:windowsHappening specifically on WindowsHappening specifically on Windowsstale
Type
Projects
Status
Done
Problem
When building the VS Code extension VSIX from WSL2, the resulting extension fails to activate with:
Root Cause
The VS Code extension host runs on Windows even when connected to a WSL remote workspace. However, building the VSIX on Linux produces Linux-only native binaries (sqlite3, LanceDB, ripgrep).
The prepackage script defaults to the current platform:
Attempted Solutions
--target win32-x64- Fails because Windows dependencies (rg.exe) aren't available on Linux:Environment variable
CONTINUE_VSCODE_TARGET=win32-x64- Same issueImpact
Developers using WSL2 (a common setup) cannot:
Suggested Solutions
Environment
Related
This was discovered while working on PR #9325 (WSL2 terminal command fix).
🤖 Generated with Claude Code