mason.nvim icon indicating copy to clipboard operation
mason.nvim copied to clipboard

Cannot find package `"ts_ls"`

Open make-github-pseudonymous-again opened this issue 1 year ago • 7 comments

I've searched open issues for similar requests

  • [X] Yes

I've manually reviewed logs to find potential errors

  • [X] Yes

I've recently downloaded the latest plugin version of mason.nvim

  • [X] Yes

Problem description

Since https://github.com/neovim/nvim-lspconfig/pull/3232, the correct server name for TypeScript is ts_ls instead of tsserver.

Replacing tsserver with ts_ls produces the following error:

Error executing vim.schedule lua callback: ...l/share/nvim/lazy/mason.nvim/lua/mason-registry/init.lua:80: Cannot find package "ts_ls".
stack traceback:                                                                                                                                          
        [C]: in function 'error'                                                                                                                          
        ...l/share/nvim/lazy/mason.nvim/lua/mason-registry/init.lua:80: in function 'get_package'                                                         
        ...on-tool-installer.nvim/lua/mason-tool-installer/init.lua:166: in function 'callback'                                                           
        ...share/nvim/lazy/mason.nvim/lua/mason-core/async/init.lua:87: in function 'step'                                                                
        ...share/nvim/lazy/mason.nvim/lua/mason-core/async/init.lua:96: in function 'run'                                                                 
        ...l/share/nvim/lazy/mason.nvim/lua/mason-registry/init.lua:202: in function 'refresh'                                                            
        ...on-tool-installer.nvim/lua/mason-tool-installer/init.lua:195: in function ''                                                                   
        vim/_editor.lua: in function ''                                                                                                                   
        vim/_editor.lua: in function <vim/_editor.lua:0>

Expected behavior

No error.

Steps to reproduce

require('mason-tool-installer').setup { ensure_installed = { ts_ls = {} }

Affected packages

No idea.

Neovim version (>= 0.7)

Not willing to disclose

Operating system/version

Not willing to disclose

Healthcheck

Not willing to disclose

Screenshots or recordings

No response