eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.83k stars 2.48k forks source link

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

Open meysholdt opened 4 years ago

meysholdt commented 4 years ago

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

vince-fugnitto commented 4 years ago

@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.

jylenhof commented 3 years ago

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 commented 3 years ago

I'm getting the same error.

zhongwaw commented 2 years ago

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 commented 2 years ago

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.