Closed j4ck4L0up3 closed 1 month ago
You don't have it installed cargo.
To install it you just need to install RUST with the latest version of Cargo installed. Then just restart Mason.
Thanks, @Barmaley0 that fixed it, jinja_lsp is successfully installed.
I've searched open issues for similar requests
I've recently downloaded the latest plugin version of mason.nvim
Problem description
Issue: Error states, "[mason-lspconfig.nvim] failed to install jinja_lsp."
I've troubleshot the issue by checking my mason.lua and changing between "jinja-lsp" and "jinja_lsp" with the latter being the initial string. ("jinja-lsp" simply stated it wasn't a valid entry, which was to be expected).
Running
:MasonInstall jinja_lsp
or:MasonInstall jinja-lsp
does not install the package. All other packages installed successfully after I fixed formatting errors and :Mason ran correctly.Running
:MasonLog
produces the following:In my lspconfig.lua, I setup mason-lspconfig with the following handers:
where jinja_lsp should use the default handler. I tried adding an additional handler for jinja_lsp, though I wasn't sure of adding additional properties:
This reflected no changes. I have saved and quit nvim each time I made a change as well.
Expected behavior
Expected jinja-lsp to install with other packages.
Affected packages
jinja-lsp [jinja_lsp]
Mason output
Installation log
Neovim version (>= 0.7)
NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713484068
Operating system/version
Linux 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 3 11:32:55 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Healthcheck
Screenshots