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

lldb-vscode has been renamed to lldb-dap #9964

Closed
helmesjo opened this issue Mar 22, 2024 · 4 comments · Fixed by #10091
Closed

lldb-vscode has been renamed to lldb-dap #9964

helmesjo opened this issue Mar 22, 2024 · 4 comments · Fixed by #10091
Labels
A-language-support Area: Support for programming/text languages C-bug Category: This is a bug

Comments

@helmesjo
Copy link

helmesjo commented Mar 22, 2024

Summary

LLVM v18.0.0 changed the name of the "LLDB Debug Adapter Protocol" executable from lldb-vscode to lldb-dap and thus isn't found by helix:

$ hx --health cpp
Configured language servers:
  ✓ clangd: C:\Program Files\LLVM\bin\clangd.exe
Configured debug adapter: lldb-vscode
Binary for debug adapter: 'lldb-vscode' not found in $PATH
Highlight queries: ✓
Textobject queries: ✓
Indent queries: ✓

After creating a symlink named lldb-vscode.exe (on windows atm) it works again:

$ hx --health cpp
  ✓ clangd: C:\Program Files\LLVM\bin\clangd.exe
Configured debug adapter: lldb-vscode
Binary for debug adapter: C:\Program Files\LLVM\bin\lldb-vscode.exe
Highlight queries: ✓
Textobject queries: ✓
Indent queries: ✓

Reproduction Steps

  1. Install LLVM v18+ (eg. winget install LLVM.LLVM) and make sure the bin dir is in PATH.
  2. Run hx --health cpp and see that it can't find debug adapter.
  3. Create symlink lldb-vscode -> lldb-dap.
  4. hx --health cpp now shows it as found.

Platform

Windows

Terminal Emulator

alacritty 0.13.1 (fe2a3c5)

Installation Method

winget install Helix.Helix

Helix Version

helix-term 23.10 (f6021dd)

@helmesjo helmesjo added the C-bug Category: This is a bug label Mar 22, 2024
@David-Else
Copy link
Contributor

The only reference to the filename I can find is in languages.toml:

[language.debugger]
name = "lldb-vscode"

There is no facility to add any OR statements here. Maybe the user needs to create a symbolic link, instructions could be added now to the WIKI https://github.com/helix-editor/helix/wiki/Debugger-Configurations

Maybe we should switch to lldb-dap now and ask users to symlink the old file name?

@helmesjo
Copy link
Author

Yeah expecting the new name seems correct IMO. I assume name doesn't support any pattern matching?

@kirawi kirawi added the A-language-support Area: Support for programming/text languages label Mar 22, 2024
@David-Else
Copy link
Contributor

@the-mikedavis Do you think we should change all the references to lldb-dap now to be future proof? It seems more correct to use the current naming, even though the majority of users (if there are many) would need to make a symlink as they will be using older lldb-vscode versions (for a while).

@the-mikedavis
Copy link
Member

Yep that makes sense to me. Having to symlink the binary or add an entry to languages.toml is not too bad of a workaround for older lldb installations

RoloEdits added a commit to RoloEdits/helix that referenced this issue Apr 1, 2024
`LLVM v18.0.0` changed the name here: llvm/llvm-project#69264

Current users of `lldb-vscode` not able to upgrade will have to create a
symlink so that `lldb-dap` links to `lldb-vscode`.

BREAKING CHANGE: debugger looks for `lldb-dap` rather than `lldb-vscode`

closes: helix-editor#9964
pascalkuthe pushed a commit that referenced this issue Apr 2, 2024
…10091)

`LLVM v18.0.0` changed the name here: llvm/llvm-project#69264

Current users of `lldb-vscode` not able to upgrade will have to create a
symlink so that `lldb-dap` links to `lldb-vscode`.

BREAKING CHANGE: debugger looks for `lldb-dap` rather than `lldb-vscode`

closes: #9964
Desdaemon pushed a commit to Desdaemon/helix that referenced this issue Apr 3, 2024
…elix-editor#10091)

`LLVM v18.0.0` changed the name here: llvm/llvm-project#69264

Current users of `lldb-vscode` not able to upgrade will have to create a
symlink so that `lldb-dap` links to `lldb-vscode`.

BREAKING CHANGE: debugger looks for `lldb-dap` rather than `lldb-vscode`

closes: helix-editor#9964
postsolar pushed a commit to postsolar/helix that referenced this issue Apr 4, 2024
…elix-editor#10091)

`LLVM v18.0.0` changed the name here: llvm/llvm-project#69264

Current users of `lldb-vscode` not able to upgrade will have to create a
symlink so that `lldb-dap` links to `lldb-vscode`.

BREAKING CHANGE: debugger looks for `lldb-dap` rather than `lldb-vscode`

closes: helix-editor#9964
postsolar pushed a commit to postsolar/helix that referenced this issue Apr 4, 2024
…elix-editor#10091)

`LLVM v18.0.0` changed the name here: llvm/llvm-project#69264

Current users of `lldb-vscode` not able to upgrade will have to create a
symlink so that `lldb-dap` links to `lldb-vscode`.

BREAKING CHANGE: debugger looks for `lldb-dap` rather than `lldb-vscode`

closes: helix-editor#9964
postsolar pushed a commit to postsolar/helix that referenced this issue Apr 4, 2024
…elix-editor#10091)

`LLVM v18.0.0` changed the name here: llvm/llvm-project#69264

Current users of `lldb-vscode` not able to upgrade will have to create a
symlink so that `lldb-dap` links to `lldb-vscode`.

BREAKING CHANGE: debugger looks for `lldb-dap` rather than `lldb-vscode`

closes: helix-editor#9964
postsolar pushed a commit to postsolar/helix that referenced this issue Apr 4, 2024
…elix-editor#10091)

`LLVM v18.0.0` changed the name here: llvm/llvm-project#69264

Current users of `lldb-vscode` not able to upgrade will have to create a
symlink so that `lldb-dap` links to `lldb-vscode`.

BREAKING CHANGE: debugger looks for `lldb-dap` rather than `lldb-vscode`

closes: helix-editor#9964
postsolar pushed a commit to postsolar/helix that referenced this issue Apr 20, 2024
…elix-editor#10091)

`LLVM v18.0.0` changed the name here: llvm/llvm-project#69264

Current users of `lldb-vscode` not able to upgrade will have to create a
symlink so that `lldb-dap` links to `lldb-vscode`.

BREAKING CHANGE: debugger looks for `lldb-dap` rather than `lldb-vscode`

closes: helix-editor#9964
mtoohey31 pushed a commit to mtoohey31/helix that referenced this issue Jun 2, 2024
…elix-editor#10091)

`LLVM v18.0.0` changed the name here: llvm/llvm-project#69264

Current users of `lldb-vscode` not able to upgrade will have to create a
symlink so that `lldb-dap` links to `lldb-vscode`.

BREAKING CHANGE: debugger looks for `lldb-dap` rather than `lldb-vscode`

closes: helix-editor#9964
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-language-support Area: Support for programming/text languages C-bug Category: This is a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants