Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Activating Swift extension failed: Failed to find lldb-dap in Swift toolchain #1077

Open
fearnliu opened this issue Sep 18, 2024 · 3 comments
Labels
needs investigation Issue requires some investigation before it can be worked on waiting on input Stalled waiting on Input

Comments

@fearnliu
Copy link

fearnliu commented Sep 18, 2024

Environment:

  • CPU: Intel x64
  • OS: macOS Sequoia Version 15.0
  • Xcode: Xcode Version 16.0(16A242d)
  • VSCode: VSCode Version: 1.93.1
  • vscode-swift: v1.110

Reproduce:

  1. upgrade to macOS Squoia 15.0
  2. upgrade to Xcode 16.0
  3. upgrade to VSCode 1.93.1
  4. create a iOS App project by XCode 16.0
  5. open the project by VSCode

Screenshots:

image image image image
@plemarquand
Copy link
Contributor

plemarquand commented Sep 18, 2024

@fearnliu could you run > Swift: Capture VS Code Swift Diagnostic Bundle, choose Minimal Bundle and attach the two files to this issue?

Have you updated to the newest Xcode (Xcode 16)?

@plemarquand plemarquand added the waiting on input Stalled waiting on Input label Sep 18, 2024
@fearnliu
Copy link
Author

fearnliu commented Sep 18, 2024

@fearnliu could you run > Swift: Capture VS Code Swift Diagnostic Bundle, choose Minimal Bundle and attach the two files to this issue?

Have you updated to the newest Xcode (Xcode 16)?

@plemarquand Hello~ thanks for your reply.

I have run the command in VScode. there are two files in attach files.

yep~, Xcode is Version 16.0(has upgraded to the latest version in Mac App Store recently), and the project "SmartAlarmClock"(ios APP) was created by Xcode 16. I have just opened the project in my VSCode.

By the way, my mac cpu is intel x64.

extension-logs.txt
settings.txt

@matthewbastien
Copy link
Member

@fearnliu I've addressed the failed activation with my most recent PR, but it's not really going to solve your issue if you want to use lldb-dap (if you're not enabling swift.debugger.useDebugAdapterFromToolchain then you're probably fine for now). I'm interested in determining why the extension couldn't identify your lldb-dap executable. Could you try running xcrun --find lldb-dap in your terminal and provide the output here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation Issue requires some investigation before it can be worked on waiting on input Stalled waiting on Input
Projects
None yet
Development

No branches or pull requests

4 participants