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.

Language server fails to start

See original GitHub issue

Type: Bug

After the most recent update to VS Code (1.72.2), the Terraform language server fails to load, with the following message in the log:

Launching language server: /home/vscode/.vscode-server/extensions/hashicorp.terraform-2.24.3-linux-x64/bin/terraform-ls 
Failure to start terraform-ls. Please check your configuration settings and reload this window
[Error - <date and time>] Connection to server got closed. Server will not be restarted.

The following error messages are displayed:

screenshot

Extension version: 2.24.3 VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No Remote OS version: Linux x64 5.10.102.1-microsoft-standard-WSL2

System Info
Item Value
CPUs 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz (8 x 1690)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 31.41GB (15.06GB free)
Process Argv –folder-uri=vscode-remote://wsl+Ubuntu/home/steve/projects/olde/infrastructure-application --remote=wsl+Ubuntu --crash-reporter-id 5c8fb19a-236a-4ded-9222-4cfc61978f43
Screen Reader no
VM 0%
Item Value
Remote Dev Container: Ubuntu
OS Linux x64 5.10.102.1-microsoft-standard-WSL2
CPUs 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz (8 x 1689)
Memory (System) 15.63GB (13.97GB free)
VM 0%

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
GizzmoAsuscommented, Oct 19, 2022

Hey, I’ve been having the same issue but was able to resolve it by adding serve to the language server args list in settings.json as follows:

    "terraform.languageServer": {
        "enabled": true,
        "args": [
            "serve",
        ]
    },
0reactions
github-actions[bot]commented, Nov 20, 2022

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 details necessary to investigate further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to start language server · Issue #16446 - GitHub
Error 2021-06-10 10:35:41: Starting language server, Class name = r, completed in 1ms, has a falsy return value, , Return Value: undefined [ ......
Read more >
Troubleshooting - LSP for Sublime Text
1. LSP doesn't start my language server# · Make sure that the root scope (eg. source. · Make sure that the language server...
Read more >
VSCode can't start InterSystems Language Server
Hi, I have VSCode on my Windows 10 notebook with intersystems-community.objectscript-pack installed. I'm successfully connected to remote IRIS (2021.1).
Read more >
[Solved] Failed to start language server in RC8 - Arduino IDE 2.0
EDIT2: Found the problem. If you run the IDE from a folder containing a '#' in the name, the language server fails to...
Read more >
Troubleshooting - haskell-language-server - Read the Docs
The most common client-related problem is the client simply not finding the server executable or the tools needed to load Haskell code (...
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