Skip to content

Resolve the swiftly bin path #1632

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

Merged
merged 5 commits into from
Jun 23, 2025
Merged

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