-
-
Notifications
You must be signed in to change notification settings - Fork 81
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 adapter setup issue #678
Comments
Hey 👋 thanks for pointing this out. The |
exepath is not returning an empty string though. exepath is returning the correct location. In the adapter setup right above my changes in my PR it checks to make sure vim.fn.executable is true also, so in that scenario we know exepath will not return people an empty string if that check passes |
OOOOH i didnt understand what you meant by "you can use" I thought you meant "in your config" and not "in the PR". Yes definitely, good idea, I didnt see that. Its technically already checked right above by vim.fn.executable, but you never know, good to be safe. |
Just wanted to say thank you for spotting and fixing this issue, I was wondering why codelldb was not being configured! (Also NixOS) All works as expected now, cheers! |
Yeah I finally got around to wanting to use my debugger for rust (I keep meaning to use them more and never do) and noticed the odd path in the error and was like "why is it looking in the current directory but checkhealth says it can find it?"
"yup. Its just the name, lets try absolute path"
"alright nice that works, time to grep for lldb-dap and find where that gets set" Was an easy fix I just had to put my mind to it. I only sorta know how debuggers work. I barely even know how to use them when they ARE set up, been meaning to improve at it. mrcjkb is the one who deserves credit here for putting the time in reading the docs to put something like this plugin together. |
Have you read the docs and searched existing issues?
Neovim version (nvim -v)
0.10.4
Operating system/version
NixOS unstable
Output of :checkhealth rustaceanvim
How to reproduce the issue
Expected behaviour
I expect it to run the thing found in my path rather then trying to search the current working directory for "lldb-dap"
Unfortunately, because command field of the adapter is just the name of the command, it tries to look in the current directory for it.
I will be making a PR to make it call vim.fn.exepath while setting up the adapter, which solves the issue.
Actual behaviour
Error executing vim.schedule lua callback: Vim:E475: Invalid value for argument cmd: '/home/birdee/Projects/ode/lldb-dap' is not executable
stack traceback:
[C]: in function 'jobstart'
...r/pack/myNeovimPackages/opt/nvim-dap/lua/dap/session.lua:300: in function 'handler'
...r/pack/myNeovimPackages/opt/nvim-dap/lua/dap/session.lua:1115: in function 'handle_body'
...r/pack/myNeovimPackages/opt/nvim-dap/lua/dap/session.lua:1619: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
The minimal config used to reproduce this issue.
The text was updated successfully, but these errors were encountered: