Skip to content

Improve documentation when toolchain is not found #1937

@stefanspringer1

Description

@stefanspringer1

Describe the bug
Experienced this issue on Windows, but I guess this could be an issue on all platforms. When the Swift toolchain could not be detected, the user has the option to select a folder via a dialog. This does not seem to work but with no clear error message, no folder is accepted. Also it should be clearer how to find the correct folder. Is it the folder where the "swift" executable is? Setting a suitable folder directly in the setting of the extension seems to work better (but also missing guidance here).

To Reproduce
Steps to reproduce the behavior:

  1. Remove the environment variables set by the Swift installer.
  2. Open an SPM project in VS Code.
  3. When the message that no Swift toolchain was detected, use the option to select a folder.
  4. Select e.g. the folder containing swift.exe.

Expected behavior
It be clearer what folder to be selected (also for the setting), and the dialog should work or display an error message if the selected folder is not the right one.

Environment

  • OS: Windowsa 11
  • Swift version 6.2.1
  • Visual Studio Code version: 1.106.0
  • vscode-swift version: 2.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationexperienceUser experience, quality of life, and onboarding

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions