4

I'm getting a JIT session error when I'm running my swift program in vscode. How do I run this without the error?

My terminal

[Running] swift "d:\Metropolia\Swift_new\demo.swift"
JIT session error: Symbols not found: [ $ss27_allocateUninitializedArrayySayxG_BptBwlFyp_Tg5 ]
Failed to materialize symbols: { (main, { $sSa12_endMutationyyF, $ss5print_9separator10terminatoryypd_S2StFfA1_, $ss27_finalizeUninitializedArrayySayxGABnlF, $ss5print_9separator10terminatoryypd_S2StFfA0_, main }) }

I have installed swift from swift.org. I have enabled the developer tools option as well as installed the tools from visual studio community 2022 tools installer. I have enabled the swift extension in vscode as well. Kindly help me with this. I have swift version

Swift version 6.0.1 (swift-6.0.1-RELEASE) Target: x86_64-unknown-windows-msvc

I wanted to run a Hello world program.

Got this instead in myvscode terminal :

[Running] swift "d:\Metropolia\Swift_new\demo.swift"
JIT session error: Symbols not found: [ $ss27_allocateUninitializedArrayySayxG_BptBwlFyp_Tg5 ]
Failed to materialize symbols: { (main, { $sSa12_endMutationyyF, $ss5print_9separator10terminatoryypd_S2StFfA1_, $ss27_finalizeUninitializedArrayySayxGABnlF, $ss5print_9separator10terminatoryypd_S2StFfA0_, main }) }

[Done] exited with code=4294967295 in 0.12 seconds
2
  • Did you ever get past this? Commented Jan 23 at 21:05
  • 1
    I have the same issue with Swift version 6.0.3-release on Windows. I'm just trying to run a simple hello-world script print("Hello, World!") using the command swift HelloWorld.swift, and I get the same error. Commented Feb 25 at 16:49

1 Answer 1

0

Make sure these components are installed for Visual Studio 2022

MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest)
MSVC v143 - VS 2022 C++ ARM64/ARM64EC build tools (Latest)
Windows 11 SDK (10.0.22000.0)

Visual Studio Installer -> Visual Studio 2022 (Modify button) -> Tab Individual Components

enter image description here

Filter by "MSVC v143" or "Windows 11 SDK"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.