jay-babu / mason-nvim-dap.nvim

GNU Affero General Public License v3.0
526 stars 37 forks source link

Not able to install a package when the version is defined. #100

Closed arnaupv closed 1 year ago

arnaupv commented 1 year ago

Mason version: 1.6.0 mason-nvim-dap.nvim version: 2.1.1

For instance, the following config (based on Lazyvim plugin manager) would not be able to properly install the javadbg without setting the debug to True.

return {
    "jay-babu/mason-nvim-dap.nvim",
    opts = function(_, opts)
      if type(opts.ensure_installed) == "table" then
        vim.list_extend(opts.ensure_installed, {"javadbg@0.51.0" })
      end
    end,
  }

But I have no problem when the version is NOT defined

return {
    "jay-babu/mason-nvim-dap.nvim",
    opts = function(_, opts)
      if type(opts.ensure_installed) == "table" then
        vim.list_extend(opts.ensure_installed, {"javadbg" })
      end
    end,
  }

I have not tried but similar problems could happen also with your other plugin for managing the installation of linters and formatters (here)

This issue should be reported in mason (as the problem is actually there).

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

github-actions[bot] commented 1 year ago

This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.