Skip to content

Conversation

@award999
Copy link
Contributor

Was failing to compute the correct lldb-dap path because the user had pointed swift.path to ~/.swiftly/bin. When resolving the path, lldb-dap path ends up being computed as $PWD/lldb-dap. To get around this, if we know the provided path is a swiftly bin directory, then resolve the correct swift path and toolchain path using built-in swiftly commands

Issue: #1619

award999 added 5 commits June 23, 2025 15:06
Was failing to compute the correct lldb-dap path because the user had
pointed `swift.path` to `~/.swiftly/bin`. When resolving the path, lldb-dap
path ends up being computed as `$PWD/lldb-dap`. To get around this, if we
know the provided path is a swiftly bin directory, then resolve the correct
swift path and toolchain path using built-in swiftly commands

Issue: swiftlang#1619
Only use the "use --print-location" approach and share this code
@award999 award999 merged commit 1c833b1 into swiftlang:main Jun 23, 2025
16 of 18 checks passed
@award999 award999 deleted the lldb-dap-swiftly branch June 23, 2025 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants