Hey Stefan, thanks for the quick response!
I now deinstalled the "old version" of Swift and installed the newest Windows version from swift.org.
Thats actually what I tried before installing the Compiler.
My method on writing and running Swift Code is the following:
Open a new terminal, checked with swift --version the version installed:
compnerd.org Swift version 5.9 (swift-5.9-RELEASE)
Target: x86_64-unknown-windows-msvc
I think thats all right, then I create a new text File, select Swift as the language,
wrote the Hello World programm print("Hello World")
then I want to run it and it gives me not the normal "run" button in the top right corner, only a "Swift Playground Run" button, but after pressing it, it doesnt execute anything.
Running the code from the terminal with
swift HelloWorld.swift
gives me the error
:0: error: could not load the swift standard library
and thats were I switched to the Compiler, because on friends Laptop the Copiler with the older version works just fine.
If I want to Run the Code without debugging the error
unable to find executable for Swift.playground\HelloWorld.swift.exe

appears with the options Cancel and Open´launch.json´
the json file is:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: Debugging in Visual Studio Code
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"program": "Swift.playground/HelloWorld.swift",
"args": [],
"cwd": "Swift.playground"
}
]
}
the Debug console says:
Console is in 'commands' mode, prefix expressions with '?'.
I am sorry for spamming but I want to get you as much information as possible
Thank you for your response!
Sorry If I am beeing stupid in some way