Skip to content
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

Closed
James-Livingston opened this issue Apr 15, 2019 · 5 comments
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@James-Livingston
Copy link

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
Item Value
CPUs Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz (4 x 2712)
GPU Status 2d_canvas: enabled
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
Memory (System) 15.85GB (8.02GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (13)
Extension Author (truncated) Version
vscode-markdownlint Dav 0.26.0
prettier-vscode esb 1.8.1
gc-excelviewer Gra 2.1.32
r Iku 1.0.7
puppet-vscode jpo 0.18.0
vscode-cosmosdb ms- 0.10.1
mssql ms- 1.5.0
python ms- 2019.3.6558
azure-account ms- 0.8.2
powershell ms- 2.0.2
r-lsp REd 0.1.0
code-spell-checker str 1.6.10
vscode-ansible vsc 0.5.2

(2 theme extensions excluded)

@davesbrown
Copy link

Getting same error windows server 2016

@TimK4
Copy link

TimK4 commented May 3, 2019

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.

@brycesteel
Copy link

brycesteel commented Jun 4, 2019

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!

@brycesteel
Copy link

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

@Tyriar Tyriar added the *caused-by-extension Issue identified to be caused by an extension label Jul 6, 2019
@vscodebot
Copy link

vscodebot bot commented Jul 6, 2019

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!

@vscodebot vscodebot bot closed this as completed Jul 6, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

5 participants