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

Can't register adapter #30

Open
Seybo opened this issue Oct 21, 2023 · 0 comments
Open

Can't register adapter #30

Seybo opened this issue Oct 21, 2023 · 0 comments

Comments

@Seybo
Copy link

Seybo commented Oct 21, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant