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

Nothing works after update to 2.x #386

Closed
dac73 opened this issue Jun 12, 2020 · 15 comments
Closed

Nothing works after update to 2.x #386

dac73 opened this issue Jun 12, 2020 · 15 comments

Comments

@dac73
Copy link

dac73 commented Jun 12, 2020

It's kinda unusable now, and install another version returns 404

😞

Currently looks like extension doesn't support configuration with multiple environments configs with subfolders, and if I open "project" from env folder then all referenced modules don't work.
My setup (that was working until now):

.
├── env
│   ├── staging-dev
│   │   ├── main.tf
│   │   └── variables.tf
│   └── staging-qa
│       ├── main.tf
│       └── variables.tf
├── modules
│   ├── some_module
│   │   ├── main.tf
│   │   ├── outputs.tf
│   │   └── variables.tf
└── README.md
@dac73
Copy link
Author

dac73 commented Jun 12, 2020

To install working version: #381 (comment)

@3mard
Copy link

3mard commented Jun 12, 2020

Same here, very frustrating

@brandonh-msft
Copy link

.tf file formatting also busted.

@chriswacker
Copy link

chriswacker commented Jun 12, 2020

I share your frustration. I had to install 1.4 with the .vsix and am still working with 0.11 syntax. At least that way you get some more advanced autocomplete, and even supports multiple configurations in sub-directories (which last I heard has no plans for support in 2.0).

As long as you open a single, initialized configuration, you get the listed features, which are only:

  • Manages installation and updates of the Terraform Language Server (terraform-ls), exposing its features:
    • Initialized provider completion (resource names, data source names, attribute names)
  • Includes syntax highlighting for .tf and .tfvars files (and .hcl) -- including all syntax changes new to Terraform 0.12
  • Closes braces and quotes
  • Includes for_each and variable syntax shortcuts (fore, vare, varm)

But even some of these are kinda broken.

@dac73
Copy link
Author

dac73 commented Jun 12, 2020 via email

@rpstreef
Copy link

I have a similar setup as the OP, this version completely breaks and is unusable.

@jianzhiteh
Copy link

Auto formatting doesn't work anymore... "There is no formatter for 'terraform' files installed."

@ghost
Copy link

ghost commented Jun 15, 2020

No formating, no linting, no code suggestions.

@darrenfurr
Copy link

darrenfurr commented Jun 15, 2020

Ran into the same problem...workaround:

All the formatting is back & everything is happy again.

@paultyng
Copy link
Contributor

Here are the canonical tracking issues for things raised in this thread:

Until the VS Code issue is resolved, you can manually downgrade following these instructions: https://github.com/hashicorp/vscode-terraform/wiki/Install-a-Pre-transfer-Version

@vikassood1
Copy link

vikassood1 commented Jun 17, 2020

Ran into the same problem...workaround:

All the formatting is back & everything is happy again.

Thank you so very much. Good to know I am not the only one losing my mind

@ghost
Copy link

ghost commented Jun 17, 2020

@paultyng

The formatting does not work at all, not only when there is a missing initialization. And what is about code suggestions? In which Ticket it will be solved? Sorry for asking, but i dont see that and i alredy asked in another issue where this is not been answered.

@paultyng
Copy link
Contributor

@feeyu7 I think both of those issues are related to the different folder structure issue (hashicorp/terraform-ls#32). We are working to support multiple different root and nested module configurations (including allowing users to just specify the one they want to use). So even if initialized, the root module detection is not finding the appropriate directory so causing it problems.

@chelnak
Copy link

chelnak commented Jun 22, 2020

Ran into the same problem...workaround:

All the formatting is back & everything is happy again.

Thank you!

@ghost
Copy link

ghost commented Jul 16, 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 16, 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

10 participants