Swift REPL crash on Windows

I followed every step to install Swift toolchain on Windows. So I tried to use the following commands to use the REPL:

set SWIFTFLAGS=-sdk %SDKROOT% -I %SDKROOT%/usr/lib/swift -L SDKROOT%/usr/lib/swift/windows
swift repl -target x86_64-unknown-windows-msvc %SWIFTFLAGS%

Swift prints these:

Welcome to compnerd.org Swift version 5.4 (swift-5.4-RELEASE).
Type :help for assistance.
1>

But after typing "1" and pressing Enter, Swift crash with some error logs:

Assertion failed: false && "called into swift language runtime stub", file D:\a\1\s\llvm-project\lldb\source\Target\SwiftLanguageRuntime.cpp, line 358
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
error: reproducer finalization failed: unable to load reproducer index
 #0 0x00007ff63b9cd1f5 (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\lldb.exe+0x1d1f5)
 #1 0x00007ff814c3caad (C:\Windows\System32\ucrtbase.dll+0x6caad)
 #2 0x00007ff814c3dab1 (C:\Windows\System32\ucrtbase.dll+0x6dab1)
 #3 0x00007ff814c3f4ee (C:\Windows\System32\ucrtbase.dll+0x6f4ee)
 #4 0x00007ff814c3f3e5 (C:\Windows\System32\ucrtbase.dll+0x6f3e5)
 #5 0x00007ff814c3f771 (C:\Windows\System32\ucrtbase.dll+0x6f771)
 #6 0x00007fff53ac0b5c PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x690b5c)
 #7 0x00007fff584b7e74 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x5087e74)
 #8 0x00007fff584bd5b6 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x508d5b6)
 #9 0x00007fff584bae56 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x508ae56)
#10 0x00007fff584b57f2 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x50857f2)
#11 0x00007fff5396f037 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x53f037)
#12 0x00007fff5397d454 PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x54d454)
#13 0x00007fff53949f6c PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x519f6c)
#14 0x00007fff538fa58a PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x4ca58a)
#15 0x00007fff538f92ae PyInit__lldb (C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\liblldb.dll+0x4c92ae)
#16 0x00007ff814bf10b2 (C:\Windows\System32\ucrtbase.dll+0x210b2)
#17 0x00007ff817ac7c24 (C:\Windows\System32\KERNEL32.DLL+0x17c24)
#18 0x00007ff817ccd721 (C:\Windows\SYSTEM32\ntdll.dll+0x6d721)

Swift interpreter doesn't work on Windows currently Can't interpret .swift file on Windows - #8 by Eugene_Gubin

That's sad... anyway thanks for your answer.

Terms of Service

Privacy Policy

Cookie Policy