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

opentofu-ls doesn't look for the tofu binary #10

Open
1 task
albertodonato opened this issue Jan 30, 2025 · 1 comment
Open
1 task

opentofu-ls doesn't look for the tofu binary #10

albertodonato opened this issue Jan 30, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@albertodonato
Copy link

Language Server Version

0.34.3

Terraform Version

OpenTofu v1.7.1 on linux_amd64

Client Version

emacs 29.4 with lsp

Terraform Configuration

not relevant

Steps to Reproduce

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
@albertodonato albertodonato added the bug Something isn't working label Jan 30, 2025
@ollevche
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants