hashicorp.terraform 2.9.0 failed to install with "ENOENT: no such file or directory" error.
See original GitHub issueI’m getting this output in Log (shared) in VSCode (version: 1.54.3) when v2.9.0 tries to install. The error is reproducible using the [Update to 2.9.0] button in the Extensions panel. I have not attempted the VSIX installer. I tried creating the extension folder manually just to see if the install could get any further to no avail.
Any suggestions?
[2021-03-24 12:10:10.504] [sharedprocess] [info] Installing extension: hashicorp.terraform
[2021-03-24 12:10:10.620] [sharedprocess] [info] Downloaded extension: hashicorp.terraform undefined
[2021-03-24 12:10:10.656] [sharedprocess] [error] Failed to install extension: hashicorp.terraform ENOENT: no such file or directory, mkdir 'c:\Users\{username}\.vscode\extensions\.hashicorp.terraform-2.9.0\file:\Users\aeschright\code\vscode-terraform\lsp'
[2021-03-24 12:10:10.657] [sharedprocess] [error] [uncaught exception in sharedProcess]: ENOENT: no such file or directory, mkdir 'c:\Users\{username}\.vscode\extensions\.hashicorp.terraform-2.9.0\file:\Users\aeschright\code\vscode-terraform\lsp': extracting: ENOENT: no such file or directory, mkdir 'c:\Users\{username}\.vscode\extensions\.hashicorp.terraform-2.9.0\file:\Users\aeschright\code\vscode-terraform\lsp'
at h.extractAtLocation (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:198822)
at async h.extractUserExtension (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:196834)
at async G.extractAndInstall (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:212922)
at async G.doInstallFromGallery (file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:47:209430)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error "Unable to launch language server: ENOENT: no such ...
Hi @cezarsa, sorry for the trouble. That error occurs when the Terraform extension cannot download the language server and cannot find it on ......
Read more >Failed to install provider after upgrading to Terraform 0.14
Error : Failed to install provider Error while installing hashicorp/aws v3.22.0: the current package for registry.terraform.io/hashicorp/aws ...
Read more >Installing custom provider locally error on plan
Hello, I am following the docs here to install a custom provider called “notary” locally. I get this error as listed below. │...
Read more >Install Terraform - HashiCorp Developer
Install Terraform on Mac, Linux, or Windows by downloading the binary or using a package manager ... If you get an error that...
Read more >Local Provider Installation not working in Terraform 13
Using terraform-providers/infoblox v1.1.0 from the shared cache directory Error: Failed to query available provider packages Could not ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The suggestion is that whoever built this VSIX file and hard-coded the path to their own user profile into the distribution will need to re-build it and stage it for distribution:
I’m sure that AESCHRIGHT will fix this, if this is indeed the problem.
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.