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

Cannot load PSReadline module. Console is running without PSReadline. #7257

Closed
mkassm opened this issue Aug 12, 2020 · 13 comments
Closed

Cannot load PSReadline module. Console is running without PSReadline. #7257

mkassm opened this issue Aug 12, 2020 · 13 comments
Labels
Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@mkassm
Copy link

mkassm commented Aug 12, 2020

when starting the terminal its shows that and it features has to disable

Environment

PowerShell 6.2.3
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

Cannot load PSReadline module.  Console is running without PSReadline.
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Aug 12, 2020
@zadjii-msft
Copy link
Member

Does this happen in the vintage console window (i.e. running powershell directly), or only in the Windows Terminal?

What version of PSReadline are you using? (Get-Module PSReadline)

@zadjii-msft zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Aug 12, 2020
@mkassm
Copy link
Author

mkassm commented Aug 12, 2020

Does this happen in the vintage console window (i.e. running powershell directly), or only in the Windows Terminal?

What version of PSReadline are you using? (Get-Module PSReadline)

no, it happens only in Windows Terminal.
and this command Get-Module PSReadline did not work in the windows terminal also.

but it works in normal PowerShell

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Get-PSReadLineOption, Remove-PS...


@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 12, 2020
@zadjii-msft
Copy link
Member

That's certainly weird. How did you install PowerShell 6?

@zadjii-msft zadjii-msft added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Aug 12, 2020
@mkassm
Copy link
Author

mkassm commented Aug 12, 2020

That's certainly weird. How did you install PowerShell 6?

yeah, that was the problem. my PowerShell version is 5.1 but I had installed version 7 and that works fine

@mkassm mkassm closed this as completed Aug 12, 2020
@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Aug 12, 2020
@AmirrezaG
Copy link

when starting the terminal its shows that and it features has to disable

Environment

PowerShell 6.2.3
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

Cannot load PSReadline module.  Console is running without PSReadline.

Hi I find my solution Here https://stackoverflow.com/questions/54636948/entity-framework-powershell-script-cannot-be-loaded-by-visual-studio-because-its
Solution was:
The error may be occurring because of an invalid certificate from Microsoft. Check-in Control Panel => Internet Options => Content => Certificates on the Untrusted Publishers tab. Remove Microsoft Corporation from this list.

@DJ2211
Copy link

DJ2211 commented Jan 8, 2022

i am also having same type of problem when I run powershell 5 below message appears

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

One or more errors occurred.
One or more errors occurred.
Cannot load PSReadline module. Console is running without PSReadline.
PS>Get-Module PSReadline
An error occurred while creating the pipeline.

and i installed powershell 7 it's work fine but i dont know how to make powershell 7 as default in visual studio

@mcurly
Copy link

mcurly commented Feb 2, 2022

@AmirrezaG hero of the day, solved the issue for me as well!

Thank you!!!

P.s.: Logged in precisely to do this! Cheers!

@icedterminal
Copy link

Out of no where I experienced this after running several software updates. I did not have an untrusted Microsoft certificate listed that's been suggested here. I traced this back to a profile reset which changed the execution policy to Restricted. Reverting it back to RemoteSigned solved it. Not sure what exactly caused a profile reset.

@jordanwmcdonald
Copy link

Out of no where I experienced this after running several software updates. I did not have an untrusted Microsoft certificate listed that's been suggested here. I traced this back to a profile reset which changed the execution policy to Restricted. Reverting it back to RemoteSigned solved it. Not sure what exactly caused a profile reset.

That did it - appreciate you!

@tekeburak
Copy link

Check your execution policy is set to Restricted or not. If it is Restricted, setting it to AllSigned solved the issue for me.

Set-ExecutionPolicy AllSigned

@Ibtisamhaider12
Copy link

when starting the terminal its shows that and it features has to disable

Environment

PowerShell 6.2.3
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

Cannot load PSReadline module.  Console is running without PSReadline.

Hi I find my solution Here https://stackoverflow.com/questions/54636948/entity-framework-powershell-script-cannot-be-loaded-by-visual-studio-because-its Solution was: The error may be occurring because of an invalid certificate from Microsoft. Check-in Control Panel => Internet Options => Content => Certificates on the Untrusted Publishers tab. Remove Microsoft Corporation from this list.

You are a life saver Man.. Thanks..!!

@ttodua
Copy link

ttodua commented Feb 3, 2024

Installed latest PS and worked for me:

  1. winget search Microsoft.PowerShell
  2. winget install --id Microsoft.Powershell --source winget
  3. set PS7 as default in vscode - https://stackoverflow.com/a/73846532/2377343

@hostat404
Copy link

Out of no where I experienced this after running several software updates. I did not have an untrusted Microsoft certificate listed that's been suggested here. I traced this back to a profile reset which changed the execution policy to Restricted. Reverting it back to RemoteSigned solved it. Not sure what exactly caused a profile reset.

that worked, Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests