Skip to content

Testing Panel Does Not Appear with v2.2.0 #1508

@rmecham

Description

@rmecham

Describe the bug
When opening certain Swift projects in VSCode with version 2.2.0 of the Swift plugin, the icon in the left for the testing panel does not appear. Attempting to run tests via the command palette also does not work. Upon downgrading to version 2.0.2 of the plugin, the testing panel becomes available again and tests can be run as expected.

This doesn't affect all projects. I haven't been able to pin down the exact trigger, but I strongly suspect it is related to dependencies. Projects with no dependencies reliably do not reproduce the bug.

To Reproduce
Steps to reproduce the behavior:

  1. Open a Swift project in VS Code where the testing panel was previously available.
  2. Allow plenty of time for the Swift plugin to initialize.
  3. Observe that the testing panel does not appear in the left.
  4. Attempt to run tests from the command palette; nothing happens.

Expected behavior
The testing panel should be available. It should be possible to launch tests from the panel or the command palette.

Environment

  • OS: macOS 15.3.2
  • Swift version: Swift version 6.0.3 (swift-6.0.3-RELEASE)
  • Visual Studio Code version:
Version: 1.99.3 (Universal)
Commit: 17baf841131aa23349f217ca7c570c76ee87b957
Date: 2025-04-15T23:18:46.076Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.3.0
  • vscode-swift version: 2.2.0

Additional context
I often use dev containers for development; this bug appeared in projects that do and do not use dev containers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions