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

Robust toolchain resolution for Code LLDB dylib #1045

Open
cmcgee1024 opened this issue Aug 30, 2024 · 1 comment
Open

Robust toolchain resolution for Code LLDB dylib #1045

cmcgee1024 opened this issue Aug 30, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@cmcgee1024
Copy link
Member

cmcgee1024 commented Aug 30, 2024

Is your feature request related to a problem? Please describe.
The Swift extension currently resolves the Swift toolchain LLDB dylib used by CodeLLDB by following the symbolic link, if any, from other toolchain binaries to the toolchain install location and relative paths from there to the standard location. However, in some environments the symlink may not point to the toolchain. It can be a shell script, or some kind of proxy instead, which would mean that the dylib cannot be located in this way.

See the swiftly proxy proposal as an example.

Describe the solution you'd like
Since the Swift extension has knowledge of swiftly already, such as the presence of the config.json file, it can use the toolchain location under swiftly to find the symbolic link.

Note that the proposal above includes a possible mechanism to invoke swiftly itself to find a toolchain location that could be another avenue for finding the physical location of a toolchain managed by swiftly. Currently, it looks something like this, but could change before it is released:

swiftly use --print-location

Describe alternatives you've considered
An alternative to this is to use the LLDB-DAP, which doesn't require the use of specific files within a toolchain for debugging.

Additional context
N/A

@cmcgee1024 cmcgee1024 added the enhancement New feature or request label Aug 30, 2024
@award999
Copy link
Contributor

@matthewbastien can we somehow ask swift for the location?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants