swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
743 stars 51 forks source link

Handle having multiple Swift toolchains on Windows #795

Closed plemarquand closed 4 months ago

plemarquand commented 4 months ago

It is possible for which swift to return multiple lines if the user has more than one Swift toolchain installed. Windows behavior is to use the first one, so we use it as well but also warn the user.

adam-fowler commented 4 months ago

@compnerd, @tristanlabelle what are your thoughts on this?

compnerd commented 4 months ago

where on windows will return all the paths. Warning about the ambiguity makes sense.

The runtime is not ABI stable, so anything other than the single version installation seems fragile - there's no guarantee that the right runtime is being used. There's a desire to support multiple versions, which is why the installer has gained support for that, but the work to support parallel installs is incomplete.

This seems to be something which would be nice to support, indicating ambiguity seems like a positive, but we still have more work to do.