Skip to content
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

terrafrom language server #631

Closed
lanox opened this issue Apr 1, 2019 · 4 comments
Closed

terrafrom language server #631

lanox opened this issue Apr 1, 2019 · 4 comments

Comments

@lanox
Copy link

lanox commented Apr 1, 2019

Hi, I was wondering if you are planning to support terraform autocompletion.

@chemzqm
Copy link
Member

chemzqm commented Apr 1, 2019

No, but if it's language server of LSP, you can configure coc.nvim to use it.

@chemzqm chemzqm closed this as completed Apr 2, 2019
@Kasama
Copy link

Kasama commented Aug 5, 2019

For future reference, it's easy to configure terraform-lsp to work with coc.nvim.

You can simply include the following setting to your coc-settings.json after installing terraform-lsp and adding it to you PATH. (alternatively, you can set the command key to the full path of the executable)

  "languageserver": {
    "terraform": {
      "command": "terraform-lsp",
      "filetypes": ["terraform"],
      "initializationOptions": {}
    }
  }

@chemzqm
Copy link
Member

chemzqm commented Aug 5, 2019

Consider add it to wiki page

@victoruyy
Copy link

victoruyy commented Jul 8, 2022

Hi, I am having problems installing terraform-lsp, lot of errors when I do the make command

 ## hyper  | 01:21:01 | -- terraform-lsp --> $ make
go build -ldflags "-X main.GitCommit=$(git rev-list -1 HEAD) -X main.Version=$(git describe --tags) -X main.Date=$(date +%Y-%m-%dT%T%z)"
# golang.org/x/sys/unix
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190804053845-51ab0e2deafa/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190804053845-51ab0e2deafa/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190804053845-51ab0e2deafa/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190804053845-51ab0e2deafa/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190804053845-51ab0e2deafa/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190804053845-51ab0e2deafa/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190804053845-51ab0e2deafa/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190804053845-51ab0e2deafa/unix/zsyscall_darwin_arm64.go:136:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190804053845-51ab0e2deafa/unix/zsyscall_darwin_arm64.go:151:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190804053845-51ab0e2deafa/unix/zsyscall_darwin_arm64.go:166:3: //go:linkname must refer to declared function or variable
../../go/pkg/mod/golang.org/x/sys@v0.0.0-20190804053845-51ab0e2deafa/unix/zsyscall_darwin_arm64.go:166:3: too many errors
make: *** [terraform-lsp] Error 2

Any ideas? I have a M1 Mac OS,

Really would like to have this integrated with my nvim

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants