Skip to content

Powershell integrated terminal in VSCode won't start #1735

@LordHorst

Description

@LordHorst

System Details

  • Operating system name and version
    Linux Mint 18.3 Sylvia 64-bit
  • VS Code version
    Version 1.30.2
  • PowerShell extension version
    v1.11.0
  • Output from $PSVersionTable (ran it in pwsh)

System Details Output

### VSCode version: 1.30.2 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8 x64

### VSCode extensions:
ms-vscode.PowerShell@1.11.0


### PSES version: 

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      6.1.2
PSEdition                      Core
GitCommitId                    6.1.2
OS                             Linux 4.15.0-43-generic #46~16.04.1-Ubuntu SMP Fri Dec 7 13:31:08 UTC 2018
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Issue Description

I installed VS Code today and tried writing a short powershell script. I saved my work with the file ending *.ps1 and VS Code suggested I install the PowerShell extension. I did that and was presented with the error that the extension couldn't start up.

I tried reverting to older versions, but the same error occurs ( I tried 1.5.1 as the earliest version).

I am aware of other issues that reported the same behaviour, but no fix was found there.

Expected Behaviour

The PowerShell extension should start and let me run PowerShell scripts.

Actual Behaviour

I get an error message:

The terminal process command '/usr/bin/pwsh -NoProfile -NonInteractive -Command '& '/home/user/.vscode/extensions/ms-vscode.powershell-1.10.2/modules/PowerShellEditorServices/Start-EditorServices.ps1' -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.10.2' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath '/home/user/.vscode/extensions/ms-vscode.powershell-1.10.2/modules' -EnableConsoleRepl -LogLevel 'Normal' -LogPath '/home/user/.vscode/extensions/ms-vscode.powershell-1.10.2/logs/1548700569-c12533bf-ad44-47ac-a058-eae06578bc881548700568887/EditorServices.log' -SessionDetailsPath '/home/user/.vscode/extensions/ms-vscode.powershell-1.10.2/sessions/PSES-VSCode-7679-721522' -FeatureFlags @()'' failed to launch (exit code: 1)

Attached Logs

1/28/2019 7:39:39 PM [NORMAL] - Visual Studio Code v1.30.2 64-bit
1/28/2019 7:39:39 PM [NORMAL] - PowerShell Extension v1.11.0
1/28/2019 7:39:39 PM [NORMAL] - Operating System: Linux 64-bit
1/28/2019 7:39:39 PM [NORMAL] - Path specified by 'powerShellExePath' setting - '' - not found, reverting to default PowerShell path.
1/28/2019 7:39:39 PM [NORMAL] - Language server starting --
1/28/2019 7:39:39 PM [NORMAL] -     exe: /usr/bin/pwsh
1/28/2019 7:39:39 PM [NORMAL] -     args: /home/user/.vscode/extensions/ms-vscode.powershell-1.11.0/modules/PowerShellEditorServices/Start-EditorServices.ps1 -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '1.11.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath '/home/user/.vscode/extensions/ms-vscode.powershell-1.11.0/modules' -EnableConsoleRepl -LogLevel 'Normal' -LogPath '/home/user/.vscode/extensions/ms-vscode.powershell-1.11.0/logs/1548700779-fc02c6fe-525f-40b0-95c8-d4cb5af220811548700778258/EditorServices.log' -SessionDetailsPath '/home/user/.vscode/extensions/ms-vscode.powershell-1.11.0/sessions/PSES-VSCode-7679-390119' -FeatureFlags @()
1/28/2019 7:39:39 PM [NORMAL] - powershell.exe terminated or terminal UI was closed
1/28/2019 7:39:39 PM [NORMAL] - powershell.exe started, pid: 8294
1/28/2019 7:41:39 PM [NORMAL] - Language server startup failed.
1/28/2019 7:41:39 PM [ERROR] - The language service could not be started: 
1/28/2019 7:41:39 PM [ERROR] - Timed out waiting for session file to appear.

I noticed that it's trying to start /usr/bin/pwsh. Such a file does not exist, however.

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