-
Notifications
You must be signed in to change notification settings - Fork 513
References CodeLens is causing a crash due to range exception #887
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
Comments
Ouch! That's a weird one, sorry about that! Does it only happen in this one file? |
No worries :) I don't know if it's only this file, only one I worked in today, I will code in others tomorrow, so I will let you know. |
It seems it only crashes for the tests in the repo, as far as I can see now, I can only repro the crash in tests. I tested 5 tests, and 3 of 5 crashed. These make the PowerShell Integration Console to crash: These seem to work: And it only crashes when the CodeLens try to load, as seen in this gif (sorry, it's a bit long) |
Thanks for the details! I ran out of time to fix this for today's upcoming release but after that's done I'm going to fix this for a patch update for next week :) |
I'm having the same problem with all my modules. This happens in both VSCode and VSCode Insiders. What's the setting to disable references in the User Settings? `[9:9:54] Language server starting... [9:10:2] Language server started. Language service connected. powershell.exe terminated or terminal UI was closed` |
Not sure if this is still an issue. There's a good chance the code has changed a fair amount. The error is here:
The actual crash would be a validation error now: https://github.com/PowerShell/PowerShellEditorServices/blob/8c66fa912ecfac4e93345ca96dc49d1787f81f1d/src/PowerShellEditorServices/Workspace/ScriptFile.cs#L254-L266 We've done some work on this. There is an outstanding bug, but I don't think it's quite this one. Here: #1561. Going to close this, since I suspect this is fixed. |
System Details
$PSVersionTable
: See below$pseditor.EditorServicesVersion
does not work since PowerShell Integrated Terminal i crashing.Issue Description
PowerShell Integration Terminal is crashing, and it seems when it tries to list the references. The lines shows, but the reference link does not popup, instead it crashes.
Attached Logs
logs.zip
The text was updated successfully, but these errors were encountered: