Skip to content

TypeError: namedDeclarations.push is not a function #146

Closed
@iongion

Description

@iongion

I do not know why this shows up whenever I start VSCode:

Initialized server v. 1.5.6 for file:///myproject
Analyzing file:///myproject/deploy.sh
Analyzing file:///myproject/node_modules/@babel/polyfill/scripts/build-dist.sh
Analyzing file:///myproject/node_modules/@blueprintjs/core/scripts/upgrade-blueprint-2.0.0-rename.sh
/home/myuser/.nvm/versions/node/v10.16.0/lib/node_modules/bash-language-server/out/analyser.js:213
                namedDeclarations.push(LSP.SymbolInformation.create(name, this.treeSitterTypeToLSPKind[n.type], TreeSitterUtil.range(n), uri, parentName));
                                  ^

TypeError: namedDeclarations.push is not a function
    at TreeSitterUtil.forEach (/home/myuser/.nvm/versions/node/v10.16.0/lib/node_modules/bash-language-server/out/analyser.js:213:35)
    at forEach (/home/myuser/.nvm/versions/node/v10.16.0/lib/node_modules/bash-language-server/out/util/tree-sitter.js:6:5)
    at node.children.forEach.n (/home/myuser/.nvm/versions/node/v10.16.0/lib/node_modules/bash-language-server/out/util/tree-sitter.js:8:36)
    at Array.forEach (<anonymous>)
    at forEach (/home/myuser/.nvm/versions/node/v10.16.0/lib/node_modules/bash-language-server/out/util/tree-sitter.js:8:23)
    at node.children.forEach.n (/home/myuser/.nvm/versions/node/v10.16.0/lib/node_modules/bash-language-server/out/util/tree-sitter.js:8:36)
    at Array.forEach (<anonymous>)
    at forEach (/home/myuser/.nvm/versions/node/v10.16.0/lib/node_modules/bash-language-server/out/util/tree-sitter.js:8:23)
    at node.children.forEach.n (/home/myuser/.nvm/versions/node/v10.16.0/lib/node_modules/bash-language-server/out/util/tree-sitter.js:8:36)
    at Array.forEach (<anonymous>)
[Info  - 1:13:43 PM] Connection to server got closed. Server will restart

Any way to silence it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions