Error when debugging using codelldb
EACCESS: permission denied
#217
Answered
by
BogdanFloris
BogdanFloris
asked this question in
Q&A
-
Neovim version (nvim -v)v0.9.0 Operating system/versionMacOS 14.2.1 Output of :checkhealth rustaceanvim==============================================================================
rustaceanvim: require("rustaceanvim.health").check()
Checking for Lua dependencies ~
- OK [mfussenegger/nvim-dap](https://github.com/mfussenegger/nvim-dap) installed.
Checking external dependencies ~
- OK rust-analyzer: found rust-analyzer 0.3.1831-standalone (39ad79bec 2024-02-04)
- OK Cargo: found cargo 1.74.0 (ecb9851af 2023-10-18)
- OK rustc: found rustc 1.74.0 (79e9716c9 2023-11-13)
- OK debug adapter: found codelldb
Checking config ~
- OK No errors found in config.
Checking for conflicting plugins ~
- OK No conflicting plugins detected.
Checking for tree-sitter parser ~
- OK tree-sitter parser for Rust detected. How to reproduce the issueOpen any Rust project, hover over `main` and click on Debug. Expected behaviourThe DAP UI debugger opens Actual behaviourThe following error appears in messages:
I also set the DAP log level to DEBUG and I got the following log:
The minimal config used to reproduce this issue.This is my rustaceanvim config using return {
'mrcjkb/rustaceanvim',
version = '^4',
ft = { 'rust' },
opts = {
server = {
on_attach = on_attach,
standalone = true,
settings = {
['rust-analyzer'] = {
cargo = {
allFeatures = true,
loadOutDirsFromCheck = true,
runBuildScripts = true,
},
-- Add clippy lints for Rust.
checkOnSave = {
allFeatures = true,
command = 'clippy',
extraArgs = { '--', '-W', 'clippy::pedantic' },
},
procMacro = {
enable = true,
ignored = {
['async-trait'] = { 'async_trait' },
['napi-derive'] = { 'napi' },
['async-recursion'] = { 'async_recursion' },
},
},
},
},
},
},
config = function(_, opts)
vim.g.rustaceanvim = vim.tbl_deep_extend('force', {}, opts or {})
end,
} |
Beta Was this translation helpful? Give feedback.
Answered by
BogdanFloris
Feb 7, 2024
Replies: 1 comment 7 replies
-
Hey 👋 I've converted this to a discussion, as the error is thrown by nvim-dap, and is unlikely to be caused by a bug in rustaceanvim. Are you able to run |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It wasn't that. Apparently in MacOS, you need to manually setup the
codelldb
handler inmason-nvim-dap
.For anyone that stumbles upon this issue, here's the configuration that fixed it: https://github.com/BogdanFloris/dotfiles/blob/master/files/.config/nvim/lua/plugins/debug.lua