-
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
Untitled document changing language from powershell crashes extension #1676
Comments
🤦♂️ Apparently I might have uploaded a file where there was no issue happening.... Which appears to be because when you tell it to reload you get a new folder. I've reproduced with an empty logs folder and attached the correct logs to this comment: 1546305476-d962364b-cb9d-44f6-bb72-9c6ca4561af21546305468134.zip |
This is the pertinent part of the log attached above:
My repro has more debug info (debug build):
|
So this is not necessarily a great API design but where-ever we use this
Clearly the API requires a better design. That said, for an untitled document there is no file so |
Sorry for the unintended close. Getting a little sloppy with the mouse. |
BTW we have both |
Also, the repro is a little weird. I can create an untitled doc, put in this text:
switch the lang to powershell and you will note that the PowerShell session menu doesn't appear in the status bar. But if I switch to a PS1 file and then back to this untitled doc, the session menu remains and the crash happens. So, seems we have another bug with the session menu not appearing when the language mode is changed to PowerShell on a non ps1/psm1/psd1 file. |
This is shown as fixed in the last release notes but while testing it in v1.11.0 and v2.0.0-preview.1 the system still crashes for me. |
The fix was included in the latest release--it would really helpful to determine why the fix didn't solve your issue if you could provide logs. Instructions for how to do that are here |
Extension version: 1.11.0 |
Bah, it looks like the untitled scheme path is slipping through to the .NET apis within
|
The fix will be available in the next release 1.12 due sometime next week - hopefully. |
Issue Description
When Untitled documents are set to PowerShell for a language, and then you change the language on one to another language (have tested with xml, sql, and batch) the PowerShell extension crashes.
When setting the default language to Plain Text, and then changing the file type to PowerShell and off of PowerShell it still crashes.
The one scenario where I can consistently get it to not crash:
I cannot fathom the reason for it not crashing here...
Attached Logs
1546304255-2ff2cd90-e2df-4afd-b137-6f33758ff4241546304149403.zip
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: