question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"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:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
WellspringCScommented, Mar 15, 2021

fwiw, on Ubuntu 18.04 this issue disappeared after i simply removed the extension and re-installed it.

3reactions
cuasijoecommented, Feb 23, 2021

This how to manually install it on Windows:

  • Download latest terraform-ls from https://releases.hashicorp.com/terraform-ls/
  • Unzip and copy the file to one of your user folders (ex. %USERPROFILE%\.terraform)
  • Add the following to the end of the settings.json vsCode config file:
    "terraform.languageServer": {
        "external": true,
        "pathToBinary": "C:/Users/[USER_NAME]/.terraform/terraform-ls",
        "args": [
            "serve"
        ]
    }, 
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found