Skip to content

Run Swift Script no longer seems to do anything #1836

@rhysm94

Description

@rhysm94

Describe the bug
When trying to use the Run Swift Script option on a couple of different Macs, absolutely nothing happens. I get no output, no terminal, no evidence that any code has run or attempted to run.
It doesn't matter whether I'm in a saved file or, as I usually use this feature, in an unsaved document with a short amount of code. Nothing seems to happen when I try to run the active document as a Swift script.

To Reproduce
Steps to reproduce the behavior:

  1. Open a blank text document
  2. Add some basic Swift code e.g
import Foundation
print("Hello, World!")
  1. Select "Run Swift Script" from the Command Palette
  2. Nothing happens
    Expected behavior
    Expected behaviour would be the file runs, opening a terminal, and displaying "Hello, World" as the output of the script

Environment

  • OS: macOS 26 Tahoe
  • Swift version: swift-driver version: 1.127.14.1 Apple Swift version 6.2 (swiftlang-6.2.0.19.9 clang-1700.3.19.1)
  • Visual Studio Code version: 1.104.0
  • vscode-swift version: 2.11.20250806

Additional context
This worked until very recently on my own Mac, though it seems to have stopped working before on my employer-provided Mac. My own Mac has absolutely zero restrictions on software or permissions, so I don't believe this to be the issue.
It's also not a result of upgrading to Tahoe, as my employer-provided Mac has been experiencing this bug while on Sequoia.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions