-
Notifications
You must be signed in to change notification settings - Fork 498
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] TypeError: Cannot read property 'text' of undefined at HelpCompletionFeature.onEvent #1230
Comments
I've just tried to reproduce this with @Velocet TypeScript compiles to JavaScript. So you're quite right that the error is occurring in |
Also, thanks for opening an issue! |
I have seen it before in the dev tools window. Let me see if I can repro it. |
@rjmholt Thanks for clarification! 👍 Is there anything i can do to help? Maybe a detailed trace or something alike? |
If you could provide something like that, it would definitely be helpful. The issue as it appears now seems trivial to fix, but I can't reproduce it and VSCode really shouldn't be sending us null messages, which makes me wonder if something stranger is going on |
Actually, I see above that you've already got a trace. My inclination is to just fix the superficial bug and see if bad things persist -- we lose nothing by being defensive. I will open a PR tonight |
System Details
Windows 10 Enterprise 1709 [10.0.16299.98]
1.21.0
1.6.0
$PSVersionTable
:Issue Description
When using command completion an error gets thrown inside
Log (Window)
:Example: Writing
Write-Ho
throws an error when pressing Tab to complete the command.Since i dunno much about the inner workings of VS Code or TypeScript, this is just a guess: The path referenced in the error (
C:\Users\Velocet\.vscode\extensions\ms-vscode.powershell-1.6.0\src\features\HelpCompletion.ts
) is wrong. The file in questsion is located atC:\Users\Velocet\.vscode\extensions\ms-vscode.powershell-1.6.0\out\src\features\HelpCompletion.js
and is a JavaScript file instead of a TypeScript one.Attached Logs
1521154104-9ebabe1c-9422-485b-954d-4e8dacc678161521154100855.zip
The text was updated successfully, but these errors were encountered: