-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Description
While debugging a vscode-swift issue swiftlang/vscode-swift#1937 I came to realize something is different with 6.2.1 toolchain on Windows. So we call swift --version and various other SwiftPM commands on extension activation to setup the development environment. With 6.2.1 we get the right STDOUT but exit code -1073741819 which I think indicates STATUS_ACCESS_VIOLATION.
PS > swift --version
Swift version 6.2.1 (swift-6.2.1-RELEASE)
Target: x86_64-unknown-windows-msvc
Build config: +assertions
PS > $LASTEXITCODE
-1073741819
Now I'm reproducing using the x86_64 toolchain on ARM64 Windows because for the longest time ARM64 toolchain did not work on Windows. I tried installing the ARM64 6.2.1 toolchain on Windows and the extension activates fine so I only reproduce with x86_64 toolchain on an ARM64 Windows but that worked as recently as 6.2.0. I downgraded to 6.2.0 and 6.1.3 with no issues, so think legit issue with the x86_64 toolchain for 6.2.1