swift .\hello.swift
produces error message <unknown>:0: error: could not load the swift standard library
Do I miss something?
swift .\hello.swift
produces error message <unknown>:0: error: could not load the swift standard library
Do I miss something?
The interpreter is known to have problems in non-development builds of the toolchain. There are a few other posts on the forums that cover partially getting it to work.
It's tested on swift-DEVELOPMENT-SNAPSHOT-03-25-a-windows10
toolchain.
Sorry, what I meant by non-development builds is anything which you are not building yourself from source.
@compnerd Will it be fixed it foreseeable future? I'm thinking about porting a program which creates and runs swift scripts.
I’m currently investigating stack frame setup handling for async support and a few other threads of work. I have a big backlog of other items as well. It will likely be a while before I can get back to the interpreter without others helping drive all the other work.
If you are interested, the problem is a couple of separate items. The module loading needs improvement in lldb (upstream), the library search handling seems to not be working (downstream), and there may be some more issues on the JIT side (upstream). You might be able to bisect the changes that occurred somewhere between 5.1 and 5.4 that regressed the interpreter, but it’s unlikely to help at this point - it has been too long.
Help is definitely welcome
Thank you for thorough explanation.
I wish I could help, but I am not compiler engineer and my C++ experience limited to reading some source.