Comments (5)
This is also broken for me on Windows but however I specify the binary path, it doesn't work.
from vscode-terraform.
@IronFarm what is the path to Terraform for you and what is your configuration? Can you please post what does and doesn't work exactly?
from vscode-terraform.
How embarrassing, it appears to work now. It seems you have to quit and reopen VS Code for the settings to update.
However, it claims to successfully run fmt
but the file doesn't change.
2018-10-04 08:53:06:177 [INFO ] formatting-provider: running 'terraform fmt' on 'c:\Users\user.name\Documents\terraform\main.tf'
2018-10-04 08:53:06:178 [INFO ] runner: Running terraform cwd='C:\Users\user.name\AppData\Local\Programs\Microsoft VS Code' path='terraform11' (version: 0.11.8) args=[fmt, -]
2018-10-04 08:53:07:073 [INFO ] file-system-watcher: Indexed file:///c%3A/Users/user.name/Documents/terraform/main.tf
2018-10-04 08:53:07:939 [INFO ] runner: Running terraform succeeded.
It looks like it's reading from stdin but I can't tell how it's saving the formatted file.
from vscode-terraform.
I don't really know what to do with this issue as it seems to be working again, please feel free to reopen if the issue persists.
Thanks for using my plugin, sorry that I couldn't be of more help.
from vscode-terraform.
I can still reproduce this on 1.3.12 if the terraform binary is not in my PATH (unless I skimmed too quickly, the runner
helper introduced (1d4e52b) searches the PATH
, but doesn't do path expansion for ~
).
That said, since my binary is actually in my PATH, that change fixed my use-case so thanks 😃 .
from vscode-terraform.
Related Issues (20)
- Terraform Auto complete Not working HOT 8
- vscode always complains `This module is not yet installed` error in submodules HOT 1
- Extension shows a deprecation for an attribute but not the reason HOT 2
- Terraform intellisense is not showing when using module with github as the source HOT 2
- Completions for variables include the var. (unless you don't type the dot) HOT 3
- Syntax Highlighting Breaks If a Function is Split Over Multiple Lines When in String Interpolation HOT 1
- "tags" not expected in `aws_budgets_budget` HOT 3
- Error in transit_encryption_mode attribute on AWS aws_elasticache_replication_group Resource HOT 3
- "Unexpected attribute: An attribute named "private_endpoint_network_policies" is not expected here" HOT 3
- Secret_environment_variables in the service_config block of google_cloudfunctions2_function does not accept array HOT 2
- Syntax validation throwing incorrect errors for Terraform Test files (`*.tftest.hcl`) HOT 8
- Heredoc causes text cursor to freeze HOT 3
- Terraform Linter reports error with WAFv2 rule_action_override but matches documentation HOT 6
- Intellisense completion for variable identifier replaces var.name with var.var.name
- Syntax highlighting broken with `SELECT` statements HOT 3
- Autocomplete stops working from one file to another in the same module HOT 14
- Unexpected attribute error for terraform-aws-modules/iam/aws//modules/iam-role-for-service-accounts-eks HOT 4
- Linter Syntax validation not refreshing after editing file HOT 2
- "Format On Save" fails even when Terraform is on PATH HOT 2
- azurerm_storage_account https_traffic_only_enabled not recognized HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-terraform.