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.

VSCode keeps installing ls 0.14.0 and fails to start language server

See original GitHub issue

Every time I open VSCode in a terraform repo, I get 2 pop ups in the bottom right of the screen. See screenshot attachments.

The first is a message saying ‘Installed terraform-ls 0.14.0.’. I get this every time, so I assume the install is actually failing

The second is a message is ‘Couldn’t start client Language Server:’

I’ve tried uninstalling and reinstalling the extension and uninstalling and reinstalling VSCode entirely. I’ve also made sure to run terraform init as well as reset the terraform.languageServer block in the settings JSON as instructed in the README.

terraform-ls_message

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
NJITmancommented, Feb 27, 2021

I had the same issue - just the first part. Terraform Language Server would install on every VSCode open. Sometimes it would error, but most times it would just finish and I would close the popup. More of an annoyance than anything else. When I checked my pathToBinary property in settings, it was blank. So, I downloaded the terraform-ls.exe for my system and updated the path in settings. No more popup. My settings look the same as previous post (minus path differences), so I did not repeat it here - the above post works to solve the problem.

2reactions
NJITmancommented, Mar 8, 2021

I don’t know if anyone else does this, but I think it is worth noting that I install VS Code using Chocolatey. I am experiencing this same issue.

My install was standard windows installer. I also use a mac and settings sync, the mac behaved the same way until applying the fix. I don’t think it is platform specific.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Language server is failing to start. · Issue #390 - GitHub
I am getting below error while trying to install the latest version of this extension. Launching language server: ...
Read more >
Language Server Extension Guide - Visual Studio Code
Learn how to create Language Servers to provide rich language features in Visual Studio Code.
Read more >
Troubleshoot Terminal launch failures - Visual Studio Code
Some terminal launch failures may be due to your shell installation and are not specific to VS Code. The exit codes displayed come...
Read more >
Remote Development FAQ - Visual Studio Code
The VS Code Server is quickly installed by VS Code when you connect to a remote ... You can use one of the...
Read more >
Visual Studio Code Frequently Asked Questions
Visual Studio Code FAQ. Our docs contain a Common questions section as needed for specific topics. We've captured items here that don't fit...
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