"Unable to install terraform-ls"
See original GitHub issue- Installed newest (
v2.2.3) version - Created directory with example files && terraform init (with
v0.13.4) - Opened directory in VS Code
- Error toast:
Unable to install terraform-ls
Extension host log:
[2020-10-24 08:31:24.728] [exthost] [error] TypeError: Cannot read property 'url' of undefined
at LanguageServerInstaller.<anonymous> (c:\Users\Marcus\.vscode\extensions\hashicorp.terraform-2.2.3\src\languageServerInstaller.ts:113:29)
at Generator.next (<anonymous>)
at c:\Users\Marcus\.vscode\extensions\hashicorp.terraform-2.2.3\out\languageServerInstaller.js:8:71
at new Promise (<anonymous>)
at __awaiter (c:\Users\Marcus\.vscode\extensions\hashicorp.terraform-2.2.3\out\languageServerInstaller.js:4:12)
at LanguageServerInstaller.installPkg (c:\Users\Marcus\.vscode\extensions\hashicorp.terraform-2.2.3\out\languageServerInstaller.js:98:16)
at LanguageServerInstaller.<anonymous> (c:\Users\Marcus\.vscode\extensions\hashicorp.terraform-2.2.3\src\languageServerInstaller.ts:78:15)
at Generator.next (<anonymous>)
at fulfilled (c:\Users\Marcus\.vscode\extensions\hashicorp.terraform-2.2.3\out\languageServerInstaller.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
Windows 10 1909
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Manual install for terraform-ls in vscode remote ssh editor
Running the enable language server command fails when it tries to download from the internet.
Read more >terraform-ls - Homebrew Formulae
terraform -ls. Install command: brew install terraform-ls. Terraform Language Server. https://github.com/hashicorp/terraform-ls. License: MPL-2.0.
Read more >How can I make VSCode auto complete work for Terraform on ...
I had got the same problem in VS code when I installed the Terraform (Anton Kulikov) extension and the version was v0.2.2.
Read more >HashiCorp Terraform - Visual Studio Marketplace
Step 2: Install the Terraform Extension for VS Code. ... This uses a single terraform-ls process that has an understanding of your entire ......
Read more >How to Install, Update, Enable and Disable Language Server ...
You probably saw the message “For Terraform 0.12 support try enabling the experimental language server with the 'Terraform: Enable/Disable Language Server' ...
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

fwiw, on Ubuntu 18.04 this issue disappeared after i simply removed the extension and re-installed it.
This how to manually install it on Windows:
terraform-lsfromhttps://releases.hashicorp.com/terraform-ls/%USERPROFILE%\.terraform)