nvim-dap-ruby
nvim-dap-ruby copied to clipboard
Can't register adapter
Hi. I'm not sure my problem is specifically related to your plugin but I'm not sure what is it related to so i decided to give it a try here :) Sorry if it's a mistake
Here is my vim version:
> nvim --version
NVIM v0.10.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Here is my basic setup
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
local lazy = require "lazy"
local plugins = {
{
"mfussenegger/nvim-dap",
},
{
"suketa/nvim-dap-ruby",
},
}
local options = {
defaults = {
lazy = false,
},
checker = {
-- automatically check for plugin updates
enabled = false,
},
}
lazy.setup(plugins, options)
And here is what i do:
- open vim and in command line:
lua print(require('dap').adapters)=>nil - then
lua require('dap-ruby').setup()=>
E5108: Error executing lua ...ux/.local/share/nvim/lazy/nvim-dap-ruby/lua/dap-ruby.lua:119: attempt to index field 'adapters' (
a nil value)
stack traceback:
...ux/.local/share/nvim/lazy/nvim-dap-ruby/lua/dap-ruby.lua:119: in function 'setup_ruby_adapter'
...ux/.local/share/nvim/lazy/nvim-dap-ruby/lua/dap-ruby.lua:206: in function 'setup'
[string ":lua"]:1: in main chunk
I've tried js adapter as well and facing the same issue there.
Any ideas on what could be the reason for it?
Have checked many lua configs for mfussenegger/nvim-dap already and mine seems to be good enough.
Am i missing something?