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.

Connection to server is erroring. Shutting down server. terraform-ls: 1: Syntax error: word unexpected (expecting ")")

See original GitHub issue

Versions

Extension

2.21.1

VSCodium

Version: 1.72.2
Release: 22289
Commit: 378660f7dd07287aa34acf90e8fec157425c1ac8
Date: 2022-10-16T23:03:19.989Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux x64 5.15.0-52-generic
Sandboxed: No

Operating System

Linux <redacted> 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Terraform Version

1.3.4

Steps To Reproduce

  1. I’ve created an empty folder with a main.tf
  2. I check the TF output and see that it has crashed.

Expected Behavior

The LS should provide the promised features

Actual Behavior

The LS crashes:

Launching language server: /home/user/.vscode-oss/extensions/hashicorp.terraform-2.21.1/bin/terraform-ls serve
[Error - 3:31:19 PM] Connection to server is erroring. Shutting down server.
/home/user/.vscode-oss/extensions/hashicorp.terraform-2.21.1/bin/terraform-ls: 1: Syntax error: word unexpected (expecting ")")

Additional context

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dbanckcommented, Nov 21, 2022

Hi again,

I’m happy to report that the latest version 2.25.0 of the extension is now available on OpenVSX as well: https://open-vsx.org/extension/hashicorp/terraform

Future versions should be published automatically whenever we release an update.

0reactions
github-actions[bot]commented, Dec 23, 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

Publish new VS Codium release · Issue #1263 - GitHub
Server Version ❯ terraform-ls --version zsh: command not found: terraform-ls ... Shutting down server. terraform-ls: 1: Syntax error: word unexpected ...
Read more >
Syntax error: word unexpected (expecting ")") - Stack Overflow
What is this error and how can I solve it? P.S 1 - the Sourcery toolchain is present inside /opt/ folder and my...
Read more >
VSCode: Terraform Module Calls not working
It seems to me that most things are working, but when editing a “.tf” file in an initialized Terraform project directory, the “Terraform...
Read more >
Enabling VS Code Terraform extension code completion on ...
Terraform Language Server. Basically I've been writing Terraform definitions in VS Code on Windows 10, but I've left some unfamiliar errors ...
Read more >
Troubleshooting Omnibus GitLab installation issues
This error is thrown when /etc/gitlab/gitlab.rb configuration file contains configuration that is invalid or unsupported. Double check that there are no typos ...
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