Open genebean opened 7 months ago
+1. I will also add that when I manually installed the language server at the same path, neovim started working with it as expected.
Bypassing the shell script in makes it work:
require("lspconfig").puppet.setup {
cmd = { "/Users/gene.liverman/.local/share/nvim/mason/packages/puppet-editor-services/libexec/puppet-languageserver" }
}
This makes me think it is something about ~/.local/share/nvim/mason/packages/puppet-editor-services/puppet-languageserver
that is the issue here.
Problem description
When I open a puppet manifest (a
.pp
file), I see this at the bottom of nvim:Running
:LspLog
opens an empty file. This is confirmed by listing the files in the directory where it seems to expect the log:Checking for
puppet
in the mason logs shows it installed fine:Why do you think this is an issue with mason-lspconfig.nvim?
Mason installed the LSP to
~/.local/share/nvim/mason/packages/puppet-editor-services
and if I can do this:That seems to indicate that the LSP runs and nvim just can't talk to it correctly... I think?
Neovim version (>= 0.7)
nvim --version NVIM v0.9.4 Build type: Release LuaJIT 2.1.1700008891
Operating system/version
Darwin Blue-Rock 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:10 PST 2023; root:xnu-10002.61.3~2/RELEASE_X86_64 x86_64 i386 Darwin
I've manually reviewed the Nvim LPS client log (
:LspLog
) to find potential errorsI've recently downloaded the latest plugin version of mason.nvim, mason-lspconfig.nvim, and nvim-lspconfig
Affected language servers
puppet
Steps to reproduce
require("mason-lspconfig").setup({ ensure_installed = { "puppet", }})
require("lspconfig").puppet.setup {}
Actual behavior
The failure mentioned above
Expected behavior
A usable language server
LspInfo
LspLog
Healthcheck
Screenshots or recordings
No response