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

error in onSignatureHelp: Cannot read property 'kind' of undefinedTypeError #357

Closed
chrisdp opened this issue Mar 12, 2021 · 2 comments · Fixed by #358
Closed

error in onSignatureHelp: Cannot read property 'kind' of undefinedTypeError #357

chrisdp opened this issue Mar 12, 2021 · 2 comments · Fixed by #358
Labels
bug Something isn't working LanguageServer

Comments

@chrisdp
Copy link
Contributor

chrisdp commented Mar 12, 2021

[Error - 2:14:06 PM] error in onSignatureHelp: Cannot read property 'kind' of undefinedTypeError: Cannot read property 'kind' of undefined
    at BrsFile.getClassFromMReference (/Users/chris/.vscode/extensions/rokucommunity.brightscript-2.17.6/node_modules/brighterscript/dist/files/BrsFile.js:775:27)
    at Program.getSignatureHelp (/Users/chris/.vscode/extensions/rokucommunity.brightscript-2.17.6/node_modules/brighterscript/dist/Program.js:673:36)
    at /Users/chris/.vscode/extensions/rokucommunity.brightscript-2.17.6/node_modules/brighterscript/dist/LanguageServer.js:815:134
    at Array.map (<anonymous>)
    at LanguageServer.onSignatureHelp (/Users/chris/.vscode/extensions/rokucommunity.brightscript-2.17.6/node_modules/brighterscript/dist/LanguageServer.js:815:91)
@chrisdp chrisdp added bug Something isn't working LanguageServer labels Mar 12, 2021
TwitchBronBron added a commit that referenced this issue Mar 12, 2021
@TwitchBronBron
Copy link
Member

I couldn't figure out how to reproduce this with code, but I do see the problem so I can submit a fix. Do you know what you were typing that triggered this?

@chrisdp
Copy link
Contributor Author

chrisdp commented Mar 13, 2021

@TwitchBronBron sadly I didn't catch what caused this one. Sorry. I will keep an eye out though and if I'm able to get it again and figure out the cause I'll let you know. I was working in a class. I can say that much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LanguageServer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants