Hi! I want to try Swift on Windows using VSCode. I downloaded the package Swift.Toolchain from winget and got version 6.2.3.
Next I installed the Swift extension in VSCode. I created an example executable project (it prints out Hello World)
Now, I can build this in VSCode but when I launch it, either in Release or Debug mode I don’t see any output. From a command line I can see the output when I do swift run. However swift repl gives an error (see below). It seems to be looking for python 3.9 but the winget installer installed 3.10 as far as I can see.
Any ideas how to get started?
> swift repl
error: unable to find 'python39.dll'.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: C:\\Users\\peter\\AppData\\Local\\Programs\\Swift\\Toolchains\\6.2.3+Asserts\\usr\\bin\\lldb.exe "--repl=-disable-objc-interop -sdk C:\\Users\\peter\\AppData\\Local\\Programs\\Swift\\Platforms\\6.2.3\\Windows.platform\\Developer\\SDKs\\Windows.sdk\\ -color-diagnostics -Xcc -fcolor-diagnostics -empty-abi-descriptor -no-auto-bridging-header-chaining -in-process-plugin-server-path C:\\Users\\peter\\AppData\\Local\\Programs\\Swift\\Toolchains\\6.2.3+Asserts\\usr\\bin\\SwiftInProcPluginServer.dll -plugin-path C:\\Users\\peter\\AppData\\Local\\Programs\\Swift\\Toolchains\\6.2.3+Asserts\\usr\\bin -plugin-path C:\\Users\\peter\\AppData\\Local\\Programs\\Swift\\Toolchains\\6.2.3+Asserts\\usr\\local\\bin -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL"
Exception Code: 0xC06D007E
#0 0x00007ff98e3fa80a (C:\WINDOWS\System32\KERNELBASE.dll+0xca80a)
#1 0x00007ff67c58493f (C:\Users\peter\AppData\Local\Programs\Swift\Toolchains\6.2.3+Asserts\usr\bin\lldb.exe+0x3493f)
#2 0x00007ff67c583d58 (C:\Users\peter\AppData\Local\Programs\Swift\Toolchains\6.2.3+Asserts\usr\bin\lldb.exe+0x33d58)
#3 0x00007ff67c559041 (C:\Users\peter\AppData\Local\Programs\Swift\Toolchains\6.2.3+Asserts\usr\bin\lldb.exe+0x9041)
#4 0x00007ff67c585550 (C:\Users\peter\AppData\Local\Programs\Swift\Toolchains\6.2.3+Asserts\usr\bin\lldb.exe+0x35550)
#5 0x00007ff98f1fe8d7 (C:\WINDOWS\System32\KERNEL32.DLL+0x2e8d7)
#6 0x00007ff990dac53c (C:\WINDOWS\SYSTEM32\ntdll.dll+0x8c53c)
output from winget show:
> winget show swift.toolchain
Found Swift [Swift.Toolchain]
Version: 6.2.3
Publisher: swift.org
Author: Swift Open Source Project
Moniker: swift
Description: Swift Toolchain for Windows
Homepage: https://www.swift.org/
License: Apache-2.0
Copyright: Copyright (c) Swift Open Source Project
Tags:
swift
Installer:
Installer Type: burn
Installer Locale: en-US
Installer Url: https://download.swift.org/swift-6.2.3-release/windows10/swift-6.2.3-RELEASE/swift-6.2.3-RELEASE-windows10.exe
Installer SHA256: 10a4d887c383bec128f3f11b8caaae8fbd0d13ff10cc9844c578b6560f1f3e77
Release Date: 2025-09-15
Offline Distribution Supported: true
Dependencies:
- Package Dependencies:
Git.Git
Microsoft.VCRedist.2015+.x64 [>= 14.28.29913.0]
Python.Python.3.10

