-
Notifications
You must be signed in to change notification settings - Fork 511
Powershell terminated due to Untitled Files #1683
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
@EricVanAken we are working to address performance issues, but do always appreciate more logs--thanks for reporting this! You mentioned that PowerShell is terminating frequently, have you noticed any patterns of when this happens or is it pretty much random/always? |
This is occurring really randomly but if it happens the first 3 to 4 session terminate and the I looks like it is working stable. To add, I'm running Windows 10 insider fast ring |
Adding some logs here. Integrated terminal is failing, a cursory look through the logs seems to indicate it is failing when it tries to run Get-Command against something it shouldn't be running that against anyway because it's a file? Not sure, but that's where I see a lot of red. |
Additional notes in case they help, I'm not even utilizing the integrated terminal, I let it run for Intellisense and I run my code in a separate process. It is failing with no action on my part and I cannot reproduce as it just dies all on its own randomly (seemingly random at least). |
@KaylorDave thanks for that, the information is helpful. It would be great if you and @EricVanAken could provide us with verbose logs as well, the information for how to do this is https://github.com/PowerShell/vscode-powershell/blob/master/docs/troubleshooting.md#providing-information-about-your-environment |
I've enabled verbose logging so the next time it happens I'll have more for you. |
More logs for you, happened again. This time it occurred immediately after changing language mode on my active Untitled file from PowerShell (my default) to PlainText. |
I will enable verbose logging, when it happens again ill post and update |
I am also having this problem. Ever since Windows 10 upgraded from 1607 to 1803 some weeks back, PowerShell in VSCode crashes constantly. All I have to do is paste some text or type a few characters, wait a second or two and then I get pop-up "The PowerShell session has terminated due to an error, would you like to restart it?". Unlike the OP's issue, my crashes aren't related to O365 scripts. ISE works without issues. In output there is only one new line when the crashes occur. The crashes are so frequent that this has pretty much made VSCode useless for me. |
This is a folding provider bug (that @KaylorDave is seeing) that I believe I have fixed in this PR. The relevant section of the log is:
|
Sent some additional logs along to the '[email protected]' email since it contained some more sensitive information. |
Seeing the description for PR @rkeithhill mentions, this may be the same problem I'm having - paste into an file - especially an unnamed file, and especially if syntactically bad , will causes powershell to terminate, but I have not found a reliable way to provoke it. Nor can I pin down which recent update changed matters but since mid December crashes have gone from almost-never, to every few minutes. |
More logs- |
I agree with @jhoneill this appears to be happening because I have PowerShell set as my default language for new files in VSCode. When I paste in something that's not PowerShell the integrated terminal crashes after a few seconds. I can't always reproduce this though. |
Happened again on a brand new window, this time I changed my language mode out of powershell prior to the crash. logdump2_1-15-19.zip |
Ok, 3rd crash in as much time. This time I was just typing some markdown... |
The first zip file above is the same old Folding bug that should be fixed in the next release. The last two are new and associated with providing Comment Help:
The fix should be easy. The workaround for now is the same as with the Folding bug, save an "untitled" file to disk as soon as possible. BTW looks like another case where we should be using |
Thanks for taking a look @rkeithhill! Looking forward to a fix as I tend to use unsaved Untitled files for random temporary stuff all the time. |
Haven't been using VS code much the last days so still no crash. |
I'm not seeing these crashes anymore since the update, seems resolved for me. Thanks! |
I'll close this then 😊 thanks! |
Issue Type: Bug
when using VS Code to manage my 365 & Azure services my powershell is crashing all the time
The log:
Extension version: 1.10.2
VS Code version: Code 1.30.1 (dea8705087adb1b5e5ae1d9123278e178656186a, 2018-12-18T18:12:07.165Z)
OS version: Windows_NT x64 10.0.18309
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: