-
Notifications
You must be signed in to change notification settings - Fork 41
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
Terraform shell completion fails without TENV_DETACHED_PROXY=false #334
Comments
Looks like this is related to this: #305 If I add FWIW, the official Terraform extension for VS Code is also broken unless either VS Code is launched with |
Thank you for the catch! We'll think about resolving such issue! |
I can clarify the consequences of setting it to False - if you Cntrl+C a running apply, it will forcefully close instead of attempting a graceful close. This can result in losing the state of anything actively being applied. Provided you are careful not to Cntrl+C any running plans, it's my belief you can safely set it to false in your profile. |
This also causes failures when running this from Neovim for example, using Question, why is
|
Can you test v4.2.0-beta2 ? |
v4.2.0-beta2 does fix completion and terraform-ls autoformatting with nvim for me. Any news on when a "usable" stable version might "fix" the accidental AUR upload (so I do not have to "maintain" my own PKGBUILD)? :) |
@dvaumoron I think that we're ready to release v4.2.0. Let's do that? |
Describe the bug
I've installed
tenv
on macOS via Homebrew, and set up zsh completion like so:complete -o nospace -C /opt/homebrew/bin/terraform terraform
I'd like the shell to use whichever version of Terraform is currently in use, hence using the proxy binary in
/opt/homebrew
.When I type
terraform<tab>
I get the following output:If I run
terraform -install-autocomplete
, the following is added to my.zshrc
, which works fine, but is tied to a specific tenv version (and it will break if I uninstall that version):complete -o nospace -C /Users/wvousden/.tenv/Terraform/1.10.4/terraform terraform
A workaround here is to dynamically look up the path to the
terraform
binary usingtenv tf detect
, but this command doesn't have an option to output the path (or the version) in a machine-readable format, so it means parsing the human-readable output:To Reproduce
Steps to reproduce the behavior:
tenv
in Homebrewcomplete -o nospace -C /opt/homebrew/bin/terraform terraform
terraform<tab>
Expected behavior
I expect to see Terraform's subcommands listed.
Environment:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: