-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
PS Terminal Crashes: An error occurred while starting PowerShell Editor Services #72348
Comments
Getting same error windows server 2016 |
I had the same issue, went through a couple of different things and uninstalled/reinstalled, nothing worked until I uninstalled and reinstalled the PowerShell extension. I believe it installed at a newer version - 1.12.1. |
I had the same issue with the PowerShell Preview extension (ms-vscode.powershell-preview@2019.5.0, VS Code x64 1.34.0) on multiple Server 2016 systems with the out-of-the-box .NET 4.6.2. The error went away and things started working as soon as I installed .NET 4.7.2. I am assuming there is a dependency / prerequisite of .NET 4.7.x (given I had no such problems on Win10 1709 with .NET 4.7.1), but I did not separately test that. It would be nice if the extension requirements / "Platform support" mentioned this apparent requirement. BTW - loving the PSReadLine integration! |
I suspect this may be more of an extension problem (seems to be for me at least), and I opened an issue over in the PowerShell extension accordingly: PowerShell/vscode-powershell#2022 |
This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. Happy Coding! |
Issue Type: Bug
Open any .ps1 file, the terminal window will display the following error:
"
An error occurred while starting PowerShell Editor Services:
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at Microsoft.PowerShell.Commands.AddTypeCommand.LoadAssemblyFromPathOrName(List`1 generatedTypes)
at Microsoft.PowerShell.Commands.AddTypeCommand.EndProcessing()
at System.Management.Automation.CommandProcessorBase.Complete()
"
VS Code version: Code 1.33.1 (51b0b28, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.14393
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
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (13)
(2 theme extensions excluded)
The text was updated successfully, but these errors were encountered: