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

Formatter stopped working #393

Closed
MarkKharitonov opened this issue Jun 15, 2020 · 5 comments
Closed

Formatter stopped working #393

MarkKharitonov opened this issue Jun 15, 2020 · 5 comments

Comments

@MarkKharitonov
Copy link

It was working for a while, but now it is not.

VS Code version:

Version: 1.45.1 (system setup)
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:27:35.169Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.17763

Extension details:

Name: Terraform
Id: hashicorp.terraform
Description: Syntax highlighting, linting, formatting, and validation for Hashicorp's Terraform
Version: 2.0.1
Publisher: HashiCorp
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=HashiCorp.terraform

Running the Format Document command opens the There is no formatter for 'terraform' files installed. popup and suggests to Install Formatter...:
image
Clicking Install Formatter... opens a list of code extensions, with this extension being present and marked as already installed (because it has been indeed already installed). At this point, I do not know what am I supposed to do:
image

@btisdall
Copy link

Same here on macOS:

Version: 1.46.0
Commit: a5d1cc28bb5da32ec67e86cc50f84c67cc690321
Date: 2020-06-10T08:59:06.977Z (5 days ago)
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.5.0

Extension version v2.0.1

@darrenfurr
Copy link

I ran into the same problem on macOS. Found a workaround by using 1.4.0:
#386 (comment)

@ghost
Copy link

ghost commented Jun 15, 2020

There is a workaround - you have to open the folder that contains .tf files. But this is not optimal - I would prefer to open top folder where I have all the subfolders with all the .tf files inside.

@paultyng
Copy link
Contributor

Here is the tracking issue on the LS, this should be relaxed in a release soon: hashicorp/terraform-ls#165

@ghost
Copy link

ghost commented Jul 15, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Jul 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants