You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While in VSCode, trying to enter a PS session on a remote machine using PowerShell version 3 or less will fail in the Integrated Terminal with the following error : Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.PowerShell.EditorServices.PowerShellContext.<>c__49`1.<ExecuteScriptAndGetItem>b__49_0(PSObject pso)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.<OfTypeIterator>d__92`1.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
at Microsoft.PowerShell.EditorServices.PowerShellContext.ExecuteScriptAndGetItem[TResult](String scriptToExecute, Runspace runspace,
TResult defaultValue)
at Microsoft.PowerShell.EditorServices.Session.RunspaceDetails.CreateFromRunspace(Runspace runspace, SessionDetails sessionDetails)
at Microsoft.PowerShell.EditorServices.PowerShellContext.System.Management.Automation.Host.IHostSupportsInteractiveSession.PushRunspace(R
unspace runspace)
at Microsoft.PowerShell.Commands.EnterPSSessionCommand.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
Regards,
Wesley
The text was updated successfully, but these errors were encountered:
System Details
Operating system name and version:
Windows 10 - 10.0.14393
Windows Server 2012 - 6.2.9200
VS Code version:
1.12.2
Editor Services :
1.2.1.0
PowerShell extension version:
$PSVersionTable
:From the client machine :
On the remote server :
Issue Description
While in VSCode, trying to enter a PS session on a remote machine using PowerShell version 3 or less will fail in the Integrated Terminal with the following error :
Object reference not set to an instance of an object.
Regards,
Wesley
The text was updated successfully, but these errors were encountered: