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

Powershell Language Server didn't start #5129

Open
1 of 6 tasks
obaid2 opened this issue Jan 20, 2025 · 1 comment
Open
1 of 6 tasks

Powershell Language Server didn't start #5129

obaid2 opened this issue Jan 20, 2025 · 1 comment
Labels
Area-Startup Issue-Bug A bug to squash. Needs: Author Feedback Please give us the requested feedback!

Comments

@obaid2
Copy link

obaid2 commented Jan 20, 2025

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

When ever i vs code it show following error message "Powershell Language Server didn't start"

The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe '-NoProfile', '-ExecutionPolicy', 'Bypass', '-Command', 'Import-Module 'c:\Users\awano.vscode\extensions\ms-vscode.powershell-2024.4.0\modules\PowerShellEditorServices\PowerShellEditorServices.psd1'; Start-EditorServices -HostName 'Visual Studio Code Host' -HostProfileId 'Microsoft.VSCode' -HostVersion '2024.4.0' -BundledModulesPath 'c:\Users\awano.vscode\extensions\ms-vscode.powershell-2024.4.0\modules' -EnableConsoleRepl -StartupBanner "PowerShell Extension v2024.4.0 Copyright (c) Microsoft Corporation. https://aka.ms/vscode-powershell Type 'help' to get help. " -LogLevel 'Normal' -LogPath 'c:\Users\awano\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\logs\1737368448-f45e265f-e6c9-4ff9-a858-bf45372db3d71737368446592' -SessionDetailsPath 'c:\Users\awano\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\sessions\PSES-VSCode-27136-476651.json' -FeatureFlags @() '" terminated with ...

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.4.6
PSEdition                      Core
GitCommitId                    7.4.6
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Name             : ConsoleHost
Version          : 7.4.6
InstanceId       : a7b3770c-cd07-4ecf-8e43-c01f8307d8cb
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-GB
CurrentUICulture : en-GB
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

Visual Studio Code Version

1.96.4
cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba
x64

Extension Version

Steps to Reproduce

1/20/2025 10:20:48 AM [NORMAL] - Visual Studio Code: v1.96.4 64-bit on Windows 64-bit

1/20/2025 10:20:48 AM [NORMAL] - PowerShell Extension: v2024.4.0

1/20/2025 10:20:49 AM [NORMAL] - Starting 'Windows PowerShell (x64)' at: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe

1/20/2025 10:20:49 AM [NORMAL] - PowerShell process started with PID: 27948

1/20/2025 10:21:08 AM [WARNING] - PowerShell process terminated or Extension Terminal was closed, PID: 27948

1/20/2025 10:21:09 AM [ERROR] - Extension Terminal is undefined.

1/20/2025 10:21:09 AM [ERROR] - PowerShell Language Server process didn't start!

Visuals

No response

Logs

No response

@obaid2 obaid2 added Issue-Bug A bug to squash. Needs: Triage Maintainer attention needed! labels Jan 20, 2025
@JustinGrote
Copy link
Collaborator

JustinGrote commented Jan 20, 2025

Thanks for your submission!

Can you enable diagnostic logging and retry and attach the logs?
Using the Developer: Set Log Level... command and select log level Trace.

@JustinGrote JustinGrote added Area-Startup Needs: Author Feedback Please give us the requested feedback! and removed Needs: Triage Maintainer attention needed! labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Startup Issue-Bug A bug to squash. Needs: Author Feedback Please give us the requested feedback!
Projects
None yet
Development

No branches or pull requests

2 participants