-
Notifications
You must be signed in to change notification settings - Fork 490
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 Extension never starts. Terminal Message: "Starting server, deregistering host logger and registering shutdown listener" #4963
Comments
Can you try disable profile loading with |
Hello, I'm wondering if there is anything else you require from me? What are my next steps? I was using the powershell extension for critical and complicated functions and its at a standstill. How can I help to progress this issue? I've already opened a ticket with Microsft Support and it was routed to a V- and I was sent here as the official support. |
Hello Team, Could you please help us with an update regarding this issue. The issue is critical for the user. Thank you. |
Hi, The presence of the command explorer icon does not indicate if the extension started or not. It's controlled by My guess is that the user has the |
More info in this thread: #3741 |
This is not about command explorer. Out of desperation I was simply describing any possible difference between a working and non-work powershell extension. Back to the issue at hand. I don't receive any popup requests or warnings and that includes anything related to running unpublished software. I also ran Get-PsExecutionPolicy directly from Powershell with the following policies. Can this be unlinked from #3741? Its not going to be helpful to keep these issues linked. |
Ok, different issue then, good to know! |
Ok so it is working, it's just when you switch to an admin user? The end of your logs show this:
so it looks like it has finished loading and connecting, and is just hung up with your |
I feel that we're getting the timing and steps taken out of order and it may be taking us down the wrong path. |
I think that's a good idea. It's hard to say what's happening on your machine when you login as an admin. For what it's worth, when you try reinstalling the extension, make sure you go to |
Prerequisites
Summary
Powershell Extension was working for years and then tab complete stopped working. Tying to figure it out, I noticed that on another server that while the default session was starting up, the tab complete in Code editor didn't work. As soon as the Powershell session/terminal was at a prompt, all tab functions as expected. So on my Wondws 2019 server, I noticed that the terminal never gets to a prompt.
PowerShell Version
Visual Studio Code Version
Extension Version
ms-vscode.?[7mpowershell?[[email protected]
Steps to Reproduce
Run VS Code
Click on a PS1 script to load into the Code editor
Auto detect sees Powershell but never gets the extension started.
While troubleshooting, I tried switching to Win PowerShell x86 and it came up OK. I then reviewed the known issue however I am not running Av3cto. In addition one of the servers where this setup does work, both servers share the same security and monitoring software packages.
Problem server is Windows 2019 build 17763
Working server: Windows 2022 Server build 20348
FYI, my debug logs were not in the path listed in the troubleshooting doc. They were located here:
C:\Users<SamAccountName>\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\logs\1712264618-f696d629-7e89-40d6-a0df-133a37127f071712263703182
Visuals
There isn't much to see. The circular arrows lower right on the image spin for as long as VS Code is running. I've had VSCode for running days and the terminal never gets to a prompt.
Logs
The logs were not in the location noted in the article. From the VS Code terminal, the verbose output from debug gave the log path. C:\Users\SATrudeauJ1\AppData\Roaming\Code\User\globalStorage\ms-vscode.powershell\logs
EditorServices.log
StartEditorServices.log
StartEditorServices-temp3D1BB094.log
StartEditorServices-temp3207AE2C.log
StartEditorServices-temp13480F4F.log
vscode-powershell.log
The text was updated successfully, but these errors were encountered: