Skip to content

In PSCore RemoteSessionStateProxy.InvokeCommand throws PSNotImpemente… #576

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

Conversation

rkeithhill
Copy link
Contributor

@rkeithhill rkeithhill commented Nov 7, 2017

…dException

Fix #1091 - I think. Well, at least the initial layer of the onion. Not sure what else we'll run into connecting to PS Core as the remote. I don't have a setup for testing that atm.

Probably don't want to crash the extension if we can't get aliases when the remote is PS Core.

See https://github.com/PowerShell/PowerShell/blob/4bc52d2358222084738157a08907fac32d13bd3a/src/System.Management.Automation/engine/remoting/client/remoterunspace.cs#L2982-L2988

…dException

Fixes PowerShell#1091 - I think.  Well, at least the initial layer of the onion.  Not sure what else we'll run into connecting to PS Core as the remote. I don't have a setup for testing that atm.

Probably don't want to crash the extension if we can get aliases when the remote is PS Core.

See https://github.com/PowerShell/PowerShell/blob/4bc52d2358222084738157a08907fac32d13bd3a/src/System.Management.Automation/engine/remoting/client/remoterunspace.cs#L2982-L2988
@rkeithhill rkeithhill added this to the 1.5.1 milestone Nov 7, 2017
@daviwil
Copy link
Contributor

daviwil commented Nov 8, 2017

Ouch. Thanks for the fix!

@daviwil
Copy link
Contributor

daviwil commented Nov 8, 2017

Actually, maybe you should also set areAliasesLoaded to true to prevent it from trying to fetch them again?

@rkeithhill
Copy link
Contributor Author

I'm still a bit confused though. When I open SMA.dll v3 in dotPeek, I see that RemoteSessionStateProxy.InvokeCommand throws the same exception. I wonder if we should not be calling this proxy?

Do this when we receive a PSNotSupportedException trying to get aliases from the (remote) session.
@rkeithhill
Copy link
Contributor Author

Hmm, the builds are vexing me. This last change shouldn't impact breakpoint tests.

@rkeithhill rkeithhill merged commit 23fa4bf into PowerShell:master Nov 10, 2017
@rkeithhill rkeithhill deleted the rkeithhill/is1091-psedit-remote-pscore-crashes branch November 10, 2017 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants