Skip to content

Powershell Integrated Console Crashes On Startup #1331

Closed
PowerShell/PowerShellEditorServices
#686
@gerryw1389

Description

@gerryw1389

NOTE: I'm using the latest version of VSCode using the portable zip version.

I am experiencing a problem with VSCode Powershell Editor Services:

An error occurred while starting PowerShell Editor Services:

A parameter cannot be found that matches parameter name 'Path'.
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

Logs:
5/21/2018 12:05:51 PM [NORMAL] - Visual Studio Code v1.23.1 64-bit
5/21/2018 12:05:51 PM [NORMAL] - PowerShell Extension v1.7.0
5/21/2018 12:05:51 PM [NORMAL] - Operating System: Windows 64-bit
5/21/2018 12:05:51 PM [NORMAL] - Path specified by 'powerShellExePath' setting - '' - not found, reverting to default PowerShell path.
5/21/2018 12:05:51 PM [NORMAL] - Language server starting --
5/21/2018 12:05:51 PM [NORMAL] - exe: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
5/21/2018 12:05:51 PM [NORMAL] - args: C:\Users\my.user.vscode\extensions\ms-vscode.powershell-1.7.0\modules\PowerShellEditorServices\Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.7.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'C:\Users\my.user.vscode\extensions\ms-vscode.powershell-1.7.0\modules' -EnableConsoleRepl -LogLevel 'Normal' -LogPath 'C:\Users\my.user.vscode\extensions\ms-vscode.powershell-1.7.0\logs\1526922351-5efd9c46-18c1-4100-b636-474b87667d2d1526922347568\EditorServices.log' -SessionDetailsPath 'C:\Users\my.user.vscode\extensions\ms-vscode.powershell-1.7.0\sessions\PSES-VSCode-19660-779493' -FeatureFlags @()
5/21/2018 12:05:52 PM [NORMAL] - powershell.exe started, pid: 14248
5/21/2018 12:06:51 PM [NORMAL] - Language server startup failed.
5/21/2018 12:06:51 PM [ERROR] - The language service could not be started:
5/21/2018 12:06:51 PM [ERROR] - Timed out waiting for session file to appear.

What I've done to try to resolve:

  1. Open Start-EditorServices.ps1 and edit line 108 to remove the -Force parameter from Set-Content even though it is a valid parameter. Then it said that -Path is not a valid parameter. Not sure what to do here because it keeps saying valid parameters are not.

Attached Logs

logs.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions