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

Validate on save doesn't work #792

Closed
dbanck opened this issue Feb 17, 2022 · 1 comment · Fixed by #799
Closed

Validate on save doesn't work #792

dbanck opened this issue Feb 17, 2022 · 1 comment · Fixed by #799
Labels
bug Something isn't working textDocument/didSave

Comments

@dbanck
Copy link
Member

dbanck commented Feb 17, 2022

Server Version

0.25.2

Terraform Version

Version:	1.1.5
Platform:	darwin_amd64
Outdated:	true

Client Version

Name Version
Operating System Darwin x64 20.6.0
VSCode 1.65.0-insider
Extension Author Version
terraform-preview hashicorp 2022.2.1108

Log Output

2022/02/17 12:44:39 opts.go:254: Received request batch of size 1 (qlen=0)
2022/02/17 12:44:39 opts.go:254: Dequeued request batch of length 1 (qlen=0)
2022/02/17 12:44:39 rpc_logger.go:29: Incoming notification for "textDocument/didSave": {"textDocument":{"uri":"file:///Users/dbanck/tmp/issue938/main.tf"}}
2022/02/17 12:44:39 opts.go:254: Discarding error from notification to "textDocument/didSave": missing context: module manager

Expected Behavior

Diagnostics collected by terraform validate should be published.

Actual Behavior

The error above occurs.

Steps to Reproduce

Enable validate on save in the settings

{
  "terraform-ls.experimentalFeatures": {
      "validateOnSave": true
  },
}

Save a Terraform file

@dbanck dbanck added bug Something isn't working textDocument/didSave labels Feb 17, 2022
@github-actions
Copy link

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 details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working textDocument/didSave
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant