swiftlang / vscode-swift

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

VSCode Swift: Attach to Process... command is broken #903

Closed vinocher-bc closed 1 week ago

vinocher-bc commented 2 weeks ago

The VSCode Swift: Attach to Process... command is broken on Windows with the following error:

Command 'Swift: Attach to Process...' resulted in an error
Failed to find LLDB in swift toolchain

To Reproduce On VSCode in Windows:

  1. Execute 'Swift: Attach to Process...' command
  2. See error: "Failed to find LLDB in swift toolchain"

Expected behavior Should allow attaching to a process

Environment

Additional context This seems like a recent regression.

vinocher-bc commented 2 weeks ago

The error is from here . @matthewbastien, could this be related to https://github.com/swiftlang/vscode-swift/pull/890 or https://github.com/swiftlang/vscode-swift/pull/817? Thanks.

matthewbastien commented 2 weeks ago

At first glance this seems like a duplicate of #887, but I only have an arm64 Windows VM to test with which Code-LLDB does not support. @vinocher-bc are you able to build the latest version of the Swift extension from source and see if this is already fixed?

plemarquand commented 2 weeks ago

Instructions on building/installing the extension from source can be found here: https://github.com/swiftlang/vscode-swift/blob/main/CONTRIBUTING.md#building

vinocher-bc commented 2 weeks ago

@plemarquand & @matthewbastien, an extension built from the latest source seems to fix this. Thanks! Is there an ETA for the next release?

adam-fowler commented 2 weeks ago

I think we'll look to get another version out next week

matthewbastien commented 1 week ago

Thank you for verifying this, @vinocher-bc! I'm going to close this as fixed. There will be a release sometime this week as @adam-fowler said.