swiftlang / vscode-swift

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

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

Closed vinocher-bc closed 4 months ago

vinocher-bc commented 4 months 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 4 months 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 4 months 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 4 months 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 4 months 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 4 months ago

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

matthewbastien commented 4 months 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.