-
Notifications
You must be signed in to change notification settings - Fork 490
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
posh extension crashing on debian linux #1283
posh extension crashing on debian linux #1283
Comments
Hi there, thanks for this report. We'll take a look! I just want to say that if you delete the integrated terminal, you basically get rid of all the good features of the extension (rich intellisense, script analyzer squiggles, the ability to run something with F8) Can you do me a favor and set your logs to We'll figure this out 😀 |
I only disabled it because I thought the issue was with the integrated terminal loading powershell (really didnt want to). I noticed testing just now (with the terminal still disabled) I can produce the error when I type "function" it pulls up the intellisense/auto-complete menu for function. When I select the "function template" then the extension will error right after it pastes in my script. here is the new logs |
Is this the setting you changed?: I'm having a hard time reproducing this. Just curious, what do you get if you don't disable the integrated terminal? |
yes that is what I changed. The issue started with the integrated console on. I turned it off only to troubleshoot. I tested just now and noticed my powershell extension updated, but same issue still. edit: My goal is to edit powershell files on my linux workstation and then push them to a windows lab. |
So the extension still crashes... Can you send me the log of it crashing without you disabling the integrated console? The error might look the same but the underlying exception might give a better idea. The logs that you provided so far are good, but they seem to only tell me it crashes when you kill the integrated console. Sorry to keep asking you that. Also what version of Debian? I'll spin up a VM and give it a try to repro. |
OS: Debian GNU/Linux 9.4 (stretch) x86_64 I will get you the logs today |
Logs as requested below. I did the diag logs and not verb; hope that was right. |
In the one log it looks like PSSA came back with 4 violations:
Then a code action was invoked. Looks like PSES read the message, returned an empty result message and then there was no more output - hard crash. Do you remember which code fix you invoked in this case? |
Sorry, code fix? edit: Later today, I will remove those issues and try again. |
@SolidCore-IA are you still experiencing this crash? |
yes I am still having this issue. With a fully update debian 9.5, vscode, and powershell core. |
tested today with a blank .ps1 file and still getting crashes from the powershell plug-in. A bunch of fresh logs attached. At this point I cant work with powershell files and the powershell plug-in at the same time at all. |
Thanks for attaching the logs. I can now repro this issue (on Windows). Essentially, create an Untitled-1 file, paste in the following text:
Convert
Possibly related - microsoft/PTVS#4350 Update: It seems to crash on the second backspace from the end of the file. |
I get this crash on any powershell script or module. The /n lines were just me waiting for it to crash. It happens with in 60 secs of what I think is the powershell extensions loading on any posh file. |
This looks like it might be related to #1492 |
Also this one: #1453 |
I've just realised the commonality in all these issues is adding a new line to the end of the file -- there seems to be an off-by-one problem there. Seems related to PowerShell/PowerShellEditorServices#573 maybe? |
Think I've got a fix for this one now -- see the PR above |
I guess Im a little confused. How do I obtain this fix? Wait for the next extension release? |
Yeah we're planning on doing a release this week. |
I have the update on the extension and still crashing. It crashes with a blank .ps1 file open. All new logs attached; including the blank .ps1 file I created only to test this. |
Issue Description
I am experiencing a problem were the powershell extension keeps crashing on Debian 9.4 linux. Error is "The powershell session has terminated due to an error, would you like to restart it?". I thought at first it was because of the integrated terminal, but I disabled the integrated terminal to auto-start. It happens with all ps1 or psm1 files when I open them or if I try to add a function using the auto-fill menu for powershell functions.
Restarting the extension, disable/enable, and reinstalled the extension same issue.
Attached Logs
Follow the instructions in the README about
capturing and sending logs.
logs.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: