swiftlang / vscode-swift

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

Failed to setup CodeLLDB for debugging of Swift code #887

Closed DeltriDev closed 2 weeks ago

DeltriDev commented 2 weeks ago

Describe the bug When I try to run a swift program through vscode (so like, F5) it doesnt work. When I launch vs code, i get this popup message: Failed to setup CodeLLDB for debugging of Swift code. Debugging may produce unexpected results. Error: Failed to find LLDB in swift toolchain. (source:Swift) For now I just use swift run on the terminal to run prokects

To Reproduce Steps to reproduce the behavior:

  1. Install swift
  2. Install the swift vscode plugin
  3. this happens

Expected behavior I should be able to just run the swift project i guess

Environment

DeltriDev commented 2 weeks ago

@matthewbastien does that mean it's fixed? How can I test it?

adam-fowler commented 2 weeks ago

@DeltriDev you can either build the extension for yourself or wait for the next release, hopefully not too long. We have build instructions in the CONTRIBUTING.md guide

plemarquand commented 2 weeks ago

I can't verify this because I only have an ARM64 Windows VM and the CodeLLDB extension doesn't support that architecture.

@DeltriDev I updated the CONTRIBUTING.md with a section on building and installing the extension from the repository. Could you try it out to see if this issue is fixed for you?

DeltriDev commented 2 weeks ago

I'll try at some point tomorrow, I'll have to reinstall swift because it caused me some problems and I had to uninstall it

DeltriDev commented 2 weeks ago

@adam-fowler I cannot build so I'll wait for the next update to let you know if it works!

award999 commented 2 weeks ago

Verified b461f8f