Skip to content

[dev containers] Activating Swift extension failed: Cannot read properties of null (reading 'replace') #1609

Open
@MahdiBM

Description

@MahdiBM

Describe the bug
Activating Swift extension failed: Cannot read properties of null (reading 'replace')

To Reproduce
Steps to reproduce the behavior:
Clone https://github.com/MahdiBM/swift-dns.
checkout vscode-ext-dev-cont-active-failed.
Open the project in a the project's dev container.

Expected behavior
No activation failure.

Environment

  • OS: [e.g. Ubuntu 20.04] macOS 26
  • Swift version (output of swift --version): 6.2 nightlies
  • Visual Studio Code version: 1.92.6; Cursor 1.0.0
  • vscode-swift version: 2.4.0

Additional context
I think I saw this problem when i was on macOS 15.4 as well, so shouldn't be macOS/Xcode 26 related. It's in a dev container anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds verificationIssue has been fixed, but requires verification before closing

    Type

    No type

    Projects

    Status

    Needs Verification

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions