-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue when trying to run swift script. #416
Comments
This is a known restriction of the legacy Swift driver. With the release of Swift 5.7, Swift has officially adopted the new driver on Windows, so this error should not appear any more with Swift 5.7+. Give the new Swift 5.7 a shot and see if anything is different? |
I did download swift 5.7 I believe, it was the latest one in the downloads section. |
wait nope it's showing as 5.6.3??? mb |
@compnerd any ideas, what is happening here |
That indicates that the environment is not correct (i.e. |
let me try restarting everything then quickly |
@compnerd restarted everything and still getting the same issue |
Run |
yeah I uninstalled swift 5.6.3 and then installed 5.7 |
where do I enter that set SDKROOT, sorry I'm a little bit incompetent here lol, just my class for school requires swift and I own no apple devices so I'm just trying to get this working lol |
You should be able to run that from a cmd prompt. |
yeah ok a path does exist SDKROOT=C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk |
I wonder if the problem is that the plugin is erasing the |
wonder if the standard library is even there perhaps? would you know what the name of the folder I should be looking for is? |
@Nytem Did you see the error when manually running The plugin doesn't modify the environment without configuration (except for testing). I see this as something wrong with SDK/toolchain layout. |
@stevapple I just right clicked, and then under swift I clicked run swift script |
You will find the standard library swift module |
@Nytem I just want to make sure that the toolchain works without the plugin. Can you open |
@stevapple like this? |
sorry for the blackouts, folders named somewhat personal info lol |
Almost right -- except that CMD doesn't specialize |
oh oops, will do |
What if you do an explicit |
exact same error |
Hmm, running with |
so when following the getting started page, it said I needed python, if I type in python --version it doesn't detect anything... could that be the issue? |
nope nvm, I just installed it all again, restarted everything, and still same standard library error |
@compnerd Looks like the 5.7 driver is still trying to use interpreter. Did you recognize any commit possibly forgotten for cherry-picking to 5.7 branch? |
@Nytem I reproduced the problem locally and this is a driver bug instead of the plugin’s. Could you please open a new issue in apple/swift-driver, so we can move on there? This issue can be closed then. |
alright, will do. thanks for the help guys! |
so I followed the getting started page for the windows installation (https://swift.org/getting-started/) but every time I try to run a swift script I get this popup.
any ideas what could be going on?
The text was updated successfully, but these errors were encountered: