Skip to content

mason-nvim-dap not working and returning error #213

Closed
@iStagnant

Description

@iStagnant

Describe the bug
The plugin mason-nvim-dap doesn't work and on startup always returns this error:

Error detected while processing /home/user/.config/nvim/init.lua:
...l/share/nvim/lazy/mason.nvim/lua/mason-registry/init.lua:78: Cannot find package "bash-debug-adapter".

This is because mason-nvim-dap is getting required and setup before mason is, and could be solved by simply adding:
require('mason').setup() as the first line in the config function, but idk if there's a better solution

To Reproduce
Steps to reproduce the behavior:

  1. Let lazy.nvim download all of the plugins
  2. Open nvim

Desktop (please complete the following information):

  • OS: Artix linux
  • Terminal: st

** Neovim Version **

  • Output of running :version from inside of neovim:
NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions