I've been eager to start working with Swift on Windows, and I have gone through the installation instructions. However, when starting the repl using
swift repl -target x86_64-unknown-windows-msvc %SWIFTFLAGS% as instructed by the getting started page, I get the following error:
Expected<T> must be checked before access or destruction. Unchecked Expected<T> contained error: TypeSystem for language swift doesn't existStack dump: 0. Program arguments: C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\lldb.exe --repl=-disable-objc-interop -sdk "C:\\Library\\Developer\\Platforms\\Windows.platform\\Developer\\SDKs\\Windows.sdk" -color-diagnostics -autolink-library oldnames -autolink-library msvcrt -Xcc -D_MT -Xcc -D_DLL
I get the same error just starting with
I have tried the x64 Native Tools Command Prompt, Powershell, and cmd (all as admin).
I am able to compile and do things like swift --version, but I cannot import SwiftWin32 (probably unrelated) which leads me to believe that the problem lies somewhere with python. I have installed the vs version of python and added that to my path, and I also had other versions of python installed and in my path as well.
If anyone knows how to fix this or what is going on, I would be grateful.