Giter Club home page Giter Club logo

Comments (5)

IronFarm avatar IronFarm commented on July 26, 2024

This is also broken for me on Windows but however I specify the binary path, it doesn't work.

from vscode-terraform.

mauve avatar mauve commented on July 26, 2024

@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.

IronFarm avatar IronFarm commented on July 26, 2024

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.

mauve avatar mauve commented on July 26, 2024

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.

phekmat avatar phekmat commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.