Skip to content

PowerShell Integrated Console prompt does not appear #3121

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

Closed
projectje opened this issue Jan 6, 2021 · 1 comment
Closed

PowerShell Integrated Console prompt does not appear #3121

projectje opened this issue Jan 6, 2021 · 1 comment

Comments

@projectje
Copy link

projectje commented Jan 6, 2021

I have the same problem as in

Both closed and without any clue on how to resolve it: VSCode opens, the PowerShell Integrated Console fails to load "Running the contributed command: PowerShell.ShowSessionMenu failed". And hangs. So not possible to run any .ps1 scripts since that says "cannot debug or run a powershell script until the powershe..."

I deinstalled visual studio code, the extension, rebootted, reinstalled vscode, the extension. Nogo

System Details

  • Windows 10
  • VSCode 1.52.1 x64
  • Extension v2020.6.0

Log

DEBUG: Logging started
DEBUG: Beginning EndProcessing block
VERBOSE: Removing PSReadLine        
DEBUG: Creating host configuration  
DEBUG: Determining REPL kind        
DEBUG: REPL configured as PSReadLine
DEBUG: Configuring LSP transport
DEBUG: Configuring debug transport
DEBUG: Session file writer created
VERBOSE: Adding AssemblyResolve event handler for new AssemblyLoadContext dependency loading
VERBOSE: Loading EditorServices
DEBUG: Logging host information
DEBUG: 
PID: 13192

VERBOSE: 
== Build Details ==
- Editor Services version: 2.2.0
- Build origin:            Release
- Build time:              11-6-2020 19:15:37

VERBOSE: 
== Host Startup Configuration Details ==
 - Host name:                 Visual Studio Code Host
 - Host version:              2020.6.0
 - Host profile ID:           Microsoft.VSCode
 - PowerShell host type:      System.Management.Automation.Internal.Host.InternalHost

 - REPL setting:              PSReadLine
 - Session details path:      c:\Users\gebruiker\.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-10348-340061
 - Bundled modules path:      c:\Users\gebruiker\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules
 - Additional modules:        PowerShellEditorServices.VSCode
 - Feature flags:

 - Log path:                  c:\Users\gebruiker\.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1609897224-07756e79-edc2-47a4-b85c-f1c99886b68c1609897216895\EditorServices.log
 - Minimum log level:         Diagnostic

 - Profile paths:
   + AllUsersAllHosts:       C:\Program Files\PowerShell\6\profile.ps1
   + AllUsersCurrentHost:    C:\Program Files\PowerShell\6\Microsoft.VSCode_profile.ps1
   + CurrentUserAllHosts:    C:\Users\gebruiker\Documents\PowerShell\profile.ps1
   + CurrentUserCurrentHost: C:\Users\gebruiker\Documents\PowerShell\Microsoft.VSCode_profile.ps1

DEBUG: Loaded into load context System.Runtime.Loader.AppPathAssemblyLoadContext: Microsoft.PowerShell.Commands.Diagnostics, Version=6.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
DEBUG: Loaded into load context System.Runtime.Loader.AppPathAssemblyLoadContext: Microsoft.WSMan.Management, Version=6.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
DEBUG: Loaded into load context System.Runtime.Loader.AppPathAssemblyLoadContext: Microsoft.WSMan.Runtime, Version=6.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
VERBOSE: 
== Console Details ==
 - Console input encoding: Western European (DOS)
 - Console output encoding: Western European (DOS)
 - PowerShell output encoding: Unicode (UTF-8)

VERBOSE: 
== PowerShell Details ==
- PowerShell version: 6.2.3
- Language mode:      FullLanguage

VERBOSE: 
== Environment Details ==
 - OS description:  Microsoft Windows 10.0.18363
 - OS architecture: X64
 - Process bitness: 64

VERBOSE: Updated PSModulePath to: 'C:\Users\gebruiker\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\6\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;c:\Users\gebruiker\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules'
DEBUG: Validating configuration
VERBOSE: Loading PowerShell Editor Services
DEBUG: Assembly resolve event fired for Microsoft.PowerShell.EditorServices, Version=2.2.0.0, Culture=neutral, PublicKeyToken=null
VERBOSE: Loading PSES DLL using new assembly load context
DEBUG: Loaded into load context Microsoft.PowerShell.EditorServices.Hosting.PsesLoadContext: Microsoft.PowerShell.EditorServices, Version=2.2.0.0, Culture=neutral, PublicKeyToken=null
VERBOSE: Starting EditorServices
DEBUG: Loaded into load context Microsoft.PowerShell.EditorServices.Hosting.PsesLoadContext: Microsoft.Extensions.Logging.Abstractions, Version=3.1.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
DEBUG: Loaded into load context Microsoft.PowerShell.EditorServices.Hosting.PsesLoadContext: Serilog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10
DEBUG: Loaded into load context Microsoft.PowerShell.EditorServices.Hosting.PsesLoadContext: Serilog.Sinks.Async, Version=1.4.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10
DEBUG: Loaded into load context Microsoft.PowerShell.EditorServices.Hosting.PsesLoadContext: Microsoft.Extensions.Logging, Version=3.1.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
DEBUG: Loaded into load context Microsoft.PowerShell.EditorServices.Hosting.PsesLoadContext: Serilog.Extensions.Logging, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10
DEBUG: Loaded into load context Microsoft.PowerShell.EditorServices.Hosting.PsesLoadContext: Serilog.Sinks.File, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10DEBUG: Loaded into load context System.Runtime.Loader.AppPathAssemblyLoadContext: System.Text.Encoding, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
DEBUG: Loaded into load context System.Runtime.Loader.AppPathAssemblyLoadContext: System.IO, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
DEBUG: Loaded into load context System.Runtime.Loader.AppPathAssemblyLoadContext: System.IO.FileSystem.Primitives, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
DEBUG: Loaded into load context Microsoft.PowerShell.EditorServices.Hosting.PsesLoadContext: Microsoft.Extensions.Options, Version=3.1.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
DEBUG: Creating/running editor services
DEBUG: Creating startup info object
VERBOSE: Starting server, deregistering host logger and registering shutdown listener
=====> PowerShell Integrated Console v2020.6.0 <=====

Settings

{
    "files.autoSave": "afterDelay",
    "telemetry.enableTelemetry": false,
    "editor.fontFamily": "Fira Code",
    "editor.fontLigatures": true,
    "editor.fontWeight": "300",
    "git.autofetch": true,
    "breadcrumbs.enabled": true,
    "files.autoGuessEncoding": true,
    "files.trimFinalNewlines": true,
    "files.trimTrailingWhitespace": true,
    "ActiveFileInStatusBar.color": "yellow",
    "ActiveFileInStatusBar.revealFile": true,
    "gitlens.views.repositories.location": "scm",
    "gitlens.views.fileHistory.location": "scm",
    "gitlens.views.lineHistory.location": "scm",
    "gitlens.views.compare.location": "scm",
    "gitlens.views.search.location": "scm",
    "git.enableSmartCommit": true,
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
    "csharp.suppressDotnetRestoreNotification": true,
    "editor.renderControlCharacters": true,
    "omnisharp.projectLoadTimeout": 120,
    "files.encoding": "utf8bom",
    "gitlens.gitCommands.skipConfirmations": [
        "fetch:command",
        "stash-push:command",
        "switch:command",
        "push:command"
    ],
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "window.title": "${dirty}${activeEditorMedium}${separator}${rootName}${separator}${appName}",
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "workbench.iconTheme": "vs-seti",
    "powershell.powerShellDefaultVersion": "PowerShell (x64)",
    "[json]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "workbench.colorTheme": "GitHub Light",
    "editor.formatOnPaste": true,
    "javascript.format.placeOpenBraceOnNewLineForControlBlocks": true,
    "javascript.format.placeOpenBraceOnNewLineForFunctions": true,
    "typescript.format.placeOpenBraceOnNewLineForControlBlocks": true,
    "typescript.format.placeOpenBraceOnNewLineForFunctions": true,
    "terminal.integrated.automationShell.windows": "",
    "powershell.developer.editorServicesLogLevel": "Diagnostic"
 }
@ghost ghost added the Needs: Triage Maintainer attention needed! label Jan 6, 2021
@projectje
Copy link
Author

Finally, as a guess, I installed https://github.com/PowerShell/PowerShell v7.1.0, restarted VSCode ...and ... it works.

@SydneyhSmith SydneyhSmith removed the Needs: Triage Maintainer attention needed! label Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants