-
Notifications
You must be signed in to change notification settings - Fork 511
Crash when editing remote file using psedit #1091
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
What version of PowerShell is on the other end? This seems to be crashing with a PSNotSupportedException when PSES is asking for all the commands of type alias on the remote side. Is it a constrained endpoint? |
Well, this would `splain the exception: Was the remote session a PowerShell Core session? |
Unfortunately it's not PowerShell core. I'm connecting to a Server 2008 R2 with version 4. Not constrained. |
I just made another test, remoting to a server running PowerShell 5.1. It behaves the same way with the same error. |
If you look at the EditorServices.log file for that session, do you see the same PSNotSupportedException? I can only see the source code for PS Core (since it's OSS). But peeking into the SMA.dll v3 with dotPeek, I see that the same method throws PSNotSupportedException as well. Hmm, I wonder if we're using the right type for remote sessions... |
Yes, the exact same error with GetAliases. I'm away from my PC right now but I can attach logs for a session to the 5.1 instance later, if you'd like? |
For the sake of being thorough, i have a attached the logs for the 5.1 session as well. |
Thanks. Yup, same exception. Have a fix for that particular exception. |
This should fixed in the upcoming 1.5.1 release. If it isn't, please re-open this issue. |
System Details
$PSVersionTable
:Issue Description
Every time i try to edit a file in a remote session the integrated console crashes.
I simple create and enter a new session (Enter-PSSession) then i use psedit to edit the file. After a few seconds, maybe as much as a minute or two, the process crashes.
I have disabled all extensions and the issue persists.
Attached Logs
1509974465-82c81cab-97f9-4af7-a119-16c6ff0a97661509974457601.zip
The text was updated successfully, but these errors were encountered: