Skip to content

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

Open
@meysholdt

Description

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"

Metadata

Assignees

No one assigned

    Labels

    🤔 needs more infoissues that require more info from the authorbugbugs found in the applicationvscodeissues related to VSCode compatibility

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions