Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code Extension hashicorp.terraform can't launch language server #8064

Open
meysholdt opened this issue Jun 20, 2020 · 5 comments
Open

VS Code Extension hashicorp.terraform can't launch language server #8064

meysholdt opened this issue Jun 20, 2020 · 5 comments
Labels
bug bugs found in the application 🤔 needs more info issues that require more info from the author vscode issues related to VSCode compatibility

Comments

@meysholdt
Copy link
Contributor

The VS Code Extension hashicorp.terraform can't start it's language server.

Steps to Reproduce:

  1. install the extension in theia
  2. trigger command: "Terraform: activate language server"
  3. find the following stack trace in the logs:
"[hosted-plugin: 1661] TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type Function. Received type object
    at checkListener (events.js:54:11)
    at ClientRequest.once (events.js:290:3)
    at new ClientRequest (_http_client.js:151:10)
    at Object.request (https.js:281:10)
    at Object.request (/tmp/vscode-extensions/vscode.@theia!vscode-builtin-npm@0.2.1/package/dist/main.js:1:37885)
    at Promise (/tmp/vscode-extensions/hashicorp.terraform@2.0.1/extension/out/languageServerInstaller.js:81:35)
    at new Promise (<anonymous>)
    at LanguageServerInstaller.checkCurrent (/tmp/vscode-extensions/hashicorp.terraform@2.0.1/extension/out/languageServerInstaller.js:80:16)
    at cp.exec (/tmp/vscode-extensions/hashicorp.terraform@2.0.1/extension/out/languageServerInstaller.js:30:30)
    at ChildProcess.exithandler (child_process.js:301:5)"

see LanguageServerInstaller.checkCurrent.ts
see languageServerInstaller.js:81

Additional Information

  • Extension Version: hashicorp.terraform@2.0.1:xJnAlwGKsLYCzp4WPmt7UQ==
  • Theia Version: "name": "@theia/core", "version": "1.2.0-next.99a7aa3c"
@vince-fugnitto
Copy link
Member

@meysholdt looking at the repo's history and opened issues it looks like the extension itself has a lot of problems at the moment (language server crashes, extension failing to work), so maybe it is expected that it does not work correctly right now.

@akosyakov akosyakov added 🤔 needs more info issues that require more info from the author bug bugs found in the application vscode issues related to VSCode compatibility labels Jun 22, 2020
@jylenhof
Copy link

jylenhof commented Dec 1, 2020

This plugin is now managed by hashicorp, so it's working again with vscode.

But I do have quite the same message when trying it again in theia :
Activating extension 'HashiCorp Terraform' failed: The "listener" argument must be of type function. Received an instance of Object

@WillBeebe
Copy link

I'm getting the same error.

@zhongwaw
Copy link

zhongwaw commented Jan 5, 2022

I'm getting same message when trying hashicorp.terraform in theia:
Activating extension 'HashiCorp Terraform' failed: The "listener" argument must be of type function.
Does anyone know what causes this issue and how to fix it?

@vince-fugnitto
Copy link
Member

Which version of the hashicorp.terraform extension are you using in your case?
I verified with version v2.14.0 (latest compatible) and after manually installing the terraform-ls and terraform cli the language server correctly started and worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application 🤔 needs more info issues that require more info from the author vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

6 participants