Skip to content

Terminal Process Terminates with Exit Code: 1 #2946

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
morning-gecko opened this issue Sep 11, 2020 · 3 comments
Closed

Terminal Process Terminates with Exit Code: 1 #2946

morning-gecko opened this issue Sep 11, 2020 · 3 comments
Labels
Resolution-Duplicate Will close automatically.

Comments

@morning-gecko
Copy link

Issue Description

Powershell extension fails to load:

The terminal process "C:\Users\<user>\.dotnet\tools\pwsh.exe '-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'Bypass', '-Command', 'Import-Module 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.6.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules' -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel 'Diagnostic' -LogPath 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1599838067-38223a80-a985-4fdc-a3ba-90d71770f81d1599834013241\EditorServices.log' -SessionDetailsPath 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-13136-802666' -FeatureFlags @() '" terminated with exit code: 1.

Attached Logs

9/11/2020 9:20:22 AM [NORMAL] - Visual Studio Code v1.48.2 64-bit
9/11/2020 9:20:22 AM [NORMAL] - PowerShell Extension v2020.6.0
9/11/2020 9:20:22 AM [NORMAL] - Operating System: Windows 64-bit
9/11/2020 9:20:22 AM [NORMAL] - Language server starting --
9/11/2020 9:20:22 AM [NORMAL] -     PowerShell executable: C:\Users\<user>\.dotnet\tools\pwsh.exe
9/11/2020 9:20:22 AM [NORMAL] -     PowerShell args: -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command Import-Module 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.6.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules' -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel 'Diagnostic' -LogPath 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1599834022-38223a80-a985-4fdc-a3ba-90d71770f81d1599834013241\EditorServices.log' -SessionDetailsPath 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-13136-267410' -FeatureFlags @() 
9/11/2020 9:20:22 AM [NORMAL] -     PowerShell Editor Services args: Import-Module 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2020.6.0' -AdditionalModules @('PowerShellEditorServices.VSCode') -BundledModulesPath 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\modules' -EnableConsoleRepl -StartupBanner "=====> PowerShell Integrated Console v2020.6.0 <=====
" -LogLevel 'Diagnostic' -LogPath 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\logs\1599834022-38223a80-a985-4fdc-a3ba-90d71770f81d1599834013241\EditorServices.log' -SessionDetailsPath 'c:\Users\<user>\.vscode\extensions\ms-vscode.powershell-2020.6.0\sessions\PSES-VSCode-13136-267410' -FeatureFlags @() 
9/11/2020 9:20:22 AM [NORMAL] - pwsh.exe started.
9/11/2020 9:20:22 AM [NORMAL] - Waiting for session file
9/11/2020 9:24:23 AM [NORMAL] - Timed out waiting for session file to appear.
9/11/2020 9:24:23 AM [NORMAL] - Language server startup failed.
9/11/2020 9:24:23 AM [ERROR] - The language service could not be started: 
9/11/2020 9:24:23 AM [ERROR] - Error: Timed out waiting for session file to appear.

Environment Information

Settings.json

{
    "terminal.integrated.windowsEnableConpty": false,
    "explorer.confirmDelete": false,
    "explorer.confirmDragAndDrop": false,
    "powershell.developer.editorServicesLogLevel": "Diagnostic"
}

Note: "terminal.integrated.windowsEnableConpty": false line added to fix "The terminal process failed to launch: A native exception occurred during launch (Cannot launch conpty)."

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.18363
VSCode 1.48.2
PowerShell Extension Version 2020.6.0

PowerShell Information

Visual Studio Code Extensions

Extension Author Version
powershell ms-vscode 2020.6.0
@ghost ghost added the Needs: Triage Maintainer attention needed! label Sep 11, 2020
@VACoder
Copy link

VACoder commented Sep 11, 2020

VSCode version 1.49.0 (user setup) has similar issue on Windows 2012 R2 (Windows_NT x64 6.3.9600)

@corbob
Copy link
Contributor

corbob commented Sep 11, 2020

It sounds like you're using the dotnet global tool for PowerShell. I suspect this is similar if not the same as #2780. Does the issue resolve if you set powershell.integratedConsole.suppressStartupBanner to true?

@morning-gecko
Copy link
Author

morning-gecko commented Sep 11, 2020

I suspect this is similar if not the same as #2780.

I read that thread yesterday, smh...

Does the issue resolve if you set powershell.integratedConsole.suppressStartupBanner to true?

Yes.
Thank you!

@TylerLeonhardt TylerLeonhardt added Resolution-Duplicate Will close automatically. and removed Needs: Triage Maintainer attention needed! labels Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate Will close automatically.
Projects
None yet
Development

No branches or pull requests

4 participants