Open liviudm opened 1 year ago
I am experiencing similar issues on Apple Intel
Would appreciate if someone could help debug this.
Hi @williamboman. I can help with debugging after 12th June if it doesn’t get sorted out until then.
Just ran into this today on Intel mac.
facing this problem on apple silicon
Facing the same issue on apple silicon!
Same issue on linux machines as well.
Edit: Scratch that, issue was due to limited functionality in single file mode of terraform-ls.
faced the same issue on mac apple silicon m3. I had to manually install lsp with :Mason
as an addition to this. Still new to nvim.
Problem description
Terraform completion using
terraformls
is not working when using the Mason installed binary on Apple Silicon Mac. The setup is pretty simple and standard,nvim-cmp
,nvim-lspconfig
,mason
, andmason-lspconfig
. I have tried severalterraformls
versions, 0.29.3, 0.30.3, 0.31.1, 0.31.2, all exhibit the same behavior.The log is full of stderr messages, but from what I understand this is related to https://github.com/hashicorp/terraform-ls/issues/1271.
As a temporary fix, I installed
terraform-ls
using Homebrew, and overwrotecmd
: https://github.com/liviudm/dotfiles/blob/main/.config/lvim/lua/plugins/lsp.lua#LL80C21-L80C21. After this change, the completion works as expectedWhy do you think this is an issue with mason-lspconfig.nvim?
Mason fetches the binaries from Hashicorp, while Homebrew compiles it. This is the only difference I was able to find.
Neovim version (>= 0.7)
NVIM v0.9.0 Build type: Release LuaJIT 2.1.0-beta3
Operating system/version
Darwin liviudm.local 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:58 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6020 arm64
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
terraformls
Steps to reproduce
Enable
terraformls
and open any*.tf
file.Actual behavior
LSP Completion and diagnostics is not working
Expected behavior
Completion and diagnostic messages should work
LspInfo
LspLog
No response
Healthcheck
Screenshots or recordings
No response