-
Notifications
You must be signed in to change notification settings - Fork 510
VSCode system.typeloadexception #3385
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
VSCodePSError20210531.mp4 |
This appears to be a bug relating to an interface change in PowerShell Preview and PSReadLine, and not a VS Code PowerShell extension specific issue. To resolve your issue here, install the stable PowerShell version instead of the preview. See PowerShell/PSReadLine#2511 |
This is weird...this should not be happening with PSReadLine 2.1.0 based on the PowerShell 7 preview release notes: https://github.com/PowerShell/PowerShell/releases/tag/v7.2.0-preview.6 And we bundle 2.1.0 in the extension, so either it is actually buggy with 2.1.0 or your systems seem to have an incompatible version of PSReadLine installed. |
@Big2thaE have you installed a beta version of PSReadLine on your machine? |
Also see PowerShell/PowerShell#15496 |
Ah I found it in the GIF, you do have PSReadLine 2.2.0-beta2 installed. Ok, please revert to 2.1.0 (just uninstall PSReadLine and let the extension use its bundled version instead). |
Going to leave this closed in favor of #3387, the task to fix the build. The latest stable release is patched and only contains PSReadLine 2.1.0, effectively avoiding this problem. |
Thank you so much!!
Closing VSCode and then running
Install-Module -Name PSReadLine -RequiredVersion 2.1.0 -force
in a PS Terminal was the winning version that set it back.
…-Erik
________________________________
From: Andrew Schwartzmeyer ***@***.***>
Sent: Tuesday, June 1, 2021 5:10 PM
To: PowerShell/vscode-powershell ***@***.***>
Cc: Big2thaE ***@***.***>; Mention ***@***.***>
Subject: Re: [PowerShell/vscode-powershell] VSCode system.typeloadexception (#3385)
Going to leave this closed in favor of #3387<#3387>, the task to fix the build. The latest stable release is patched and only contains PSReadLine 2.1.0, effectively avoiding this problem.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3385 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AIUZNZLXUZCJTPF6Z76DLMTTQVLEXANCNFSM453FYDGA>.
|
Issue Type: Bug
Start Powershell Integrated Console. Results in: VSCode system.typeloadexception: could not load type 'system.management.automation.subsystem.predictionresult' from assembly.......
Extension version: 2021.2.2
VS Code version: Code 1.56.2 (054a9295330880ed74ceaedda236253b4f39a335, 2021-05-12T17:13:13.157Z)
OS version: Windows_NT x64 10.0.19042
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: