-
-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terraformls completion is not working #224
Labels
Comments
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! |
vantaboard
pushed a commit
to vantaboard/mason-lspconfig.nvim
that referenced
this issue
Jan 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 hashicorp/terraform-ls#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
The text was updated successfully, but these errors were encountered: