You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(launched as regular, non-admin user on Windows 10 Pro)
Terraform Version
0.12.24
Client Version
Sublime Text LSP v0.9.8
Terraform Configuration Files
provider"aws" {
}
Log Output
2020/04/29 22:29:10 exec.go:172: Starting C:\ProgramData\chocolatey\bin\terraform.exe ["terraform" "version"] in "C:\\Users\\RADEKS~1\\AppData\\Local\\Temp"...
2020/04/29 22:29:10 exec.go:138: Waiting for command to finish ...
2020/04/29 22:29:10 rpc_logger.go:45: Error for "initialize" (ID 1): [-32098] failed to get version: terraform (pid 5008) exited (code 1): exit status 1
stdout: ""
stderr: "Couldn't setup logging tempfile: open C:\\Windows\\terraform-log151023907: Access is denied."
Expected Behavior
terraform version should've run successfully, with log file being created in temporary directory.
Actual Behavior
Server stopped because Terraform stopped because Terraform couldn't create the temp log file in C:\Windows (which is the default TempDir location if no ENV variables are available, as Windows doesn't seem to have a static system-wide temp dir? 😱 ).
Steps to Reproduce
Open a folder with the above config
Open file with the above config from that folder
Watch log
Proposal
We just need to whitelist a few more ENV variables here
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
locked and limited conversation to collaborators
Jun 12, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Server Version
(launched as regular, non-admin user on Windows 10 Pro)
Terraform Version
Client Version
Terraform Configuration Files
Log Output
Expected Behavior
terraform version
should've run successfully, with log file being created in temporary directory.Actual Behavior
Server stopped because Terraform stopped because Terraform couldn't create the temp log file in
C:\Windows
(which is the defaultTempDir
location if no ENV variables are available, as Windows doesn't seem to have a static system-wide temp dir? 😱 ).Steps to Reproduce
Proposal
We just need to whitelist a few more ENV variables here
terraform-ls/internal/terraform/exec/exec.go
Lines 98 to 109 in 4bb04ee
The text was updated successfully, but these errors were encountered: