You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with opentofu-ls and tofu binaries in path, trying to format code in the editor (emacs, with lsp and lsp-terraform-ls packages enabled) fails to find the terraform binary.
I've tried setting both terraform-ls.openTofu.path and terraform-ls.terraform.path options to the location of the tofu binary, but that doesn't seem to work.
Oddly even symlinking tofu to terraform doesn't seem to work.
Is there a way to point terraform-ls to use the tofu binary?
Expected Behavior
It should be possible to configure opentofu-ls to look for the tofu binary.
Possibly it should default to that, over the terraform binary?
Actual Behavior
opentofu-ls always looks for the terraform CLI binary.
Gist
No response
Workarounds
No response
References
No response
Help Wanted
I'm interested in contributing a fix myself
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
Hello @albertodonato and thanks for reporting the issue!
The language server is still in WIP status so it might be buggy in some ways. We are making it ready to be used in pair with VS Code extension so I believe it was not tested properly with other editors. Once we release the extension, we are going to rely on the community contributions for most of the bug fixes and improvements.
We are happy to assign someone from the community to work on that issue.
Language Server Version
0.34.3
Terraform Version
OpenTofu v1.7.1 on linux_amd64
Client Version
emacs 29.4 with lsp
Terraform Configuration
Steps to Reproduce
with
opentofu-ls
andtofu
binaries in path, trying to format code in the editor (emacs, withlsp
andlsp-terraform-ls
packages enabled) fails to find theterraform
binary.I've tried setting both
terraform-ls.openTofu.path
andterraform-ls.terraform.path
options to the location of thetofu
binary, but that doesn't seem to work.Oddly even symlinking
tofu
toterraform
doesn't seem to work.Is there a way to point
terraform-ls
to use thetofu
binary?Expected Behavior
It should be possible to configure
opentofu-ls
to look for thetofu
binary.Possibly it should default to that, over the
terraform
binary?Actual Behavior
opentofu-ls
always looks for theterraform
CLI binary.Gist
No response
Workarounds
No response
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: