vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

(Preview) PowerShell Command Explorer completely empty (Logs included)

Open mkanet opened this issue 3 years ago ā€¢ 14 comments

  • Slack Community Chat: https://powershell.slack.com (you can sign-up at http://slack.poshcode.org/ for an invite)
  • Gitter Chat: https://gitter.im/PowerShell/vscode-powershell

The Sidebar PowerShell Command Explorer doesn't have anything listed there.

  • I am using the latest version of the PowerShell Extension for VSCode.
  • I'm using Windows 10 (Version 2004) with native PowerShell 5.1.

Below, are the respective diagnostic logs when I navigate to the PowerShell Command Explorer:

Logs: EditorServices.log StartEditorServices.log vscode-powershell.log

Thank you for your time and hard work.

mkanet avatar Dec 18 '20 02:12 mkanet

I'm able to reproduce this locally, at first. After waiting a bit the explorer populated. In your case, does the command explorer simply never populate or do entries appear after a while?

rjmholt avatar Jan 05 '21 21:01 rjmholt

@rjmholt Thank you for your reply. I tried waiting several minutes... nothing happens, unfortunately.

It used to populate after only 5 seconds when it used to work on the same machine. Now, it doesn't populate at all. I'm not sure what else to try other than posting the debug logs above.

mkanet avatar Jan 05 '21 22:01 mkanet

Thanks, looks like this will need some deeper investigation

... fyi: @corbob

SydneyhSmith avatar Jan 12 '21 21:01 SydneyhSmith

šŸ¤” I believe I've seen instances where the sidebar doesn't load initially, and you must hit the refresh button to get it to load. Not sure if that's related to https://github.com/PowerShell/vscode-powershell/issues/2949 or like this issue (or if they're both related). I'll try to take another look at both this week and see if I can repro.

IIRC there was a setting added for not refreshing the first time, I presume that's not at play here though.

corbob avatar Jan 24 '21 23:01 corbob

šŸ¤” I believe I've seen instances where the sidebar doesn't load initially, and you must hit the refresh button to get it to load. Not sure if that's related to #2949 or like this issue (or if they're both related). I'll try to take another look at both this week and see if I can repro.

IIRC there was a setting added for not refreshing the first time, I presume that's not at play here though.

@corbob , I really appreciate your effort to look into this issue. In my case, it doesn't make any difference if I manually press the refresh icon or not. The Command Explorer remains empty. This used to work for me a couple of years ago on the same PC. I'm not sure what changed to cause this to stop working. As far as I know, my setup has remained unchanged when it comes to PowerShell. I'm still using the same PowerShell that came with Windows 10:

PSVersion 5.1.19041.610 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.19041.610 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

If there's any other information you need from me other than the debug logs I've provided, please let me know.

mkanet avatar Jan 24 '21 23:01 mkanet

Thanks @mkanet can you try running Get-Command in the integrated console and see if that returns anything for you?

SydneyhSmith avatar Feb 02 '21 21:02 SydneyhSmith

Thanks @mkanet can you try running Get-Command in the integrated console and see if that returns anything for you?

get-command works fine both within the integrated terminal (panel) and outside of VSCode Screenshot 02-02-2021 at 03 44 55 PM

My apologies if I misunderstood.

mkanet avatar Feb 02 '21 23:02 mkanet

@mkanet thanks for testing that out, that was exactly what I was asking....we will look into this when we have time...thanks!

SydneyhSmith avatar Feb 09 '21 22:02 SydneyhSmith

@SydneyhSmith thank you so much for all your hard work!

mkanet avatar Feb 09 '21 22:02 mkanet

This issue was closed automatically as repro info was indicated as needed, but there has been no activity in over a week. Please feel free to reopen with any available information!

ghost avatar Aug 19 '21 19:08 ghost

I see that repro info was not actually needed, the label was just never removed. Re-opening!

andyleejordan avatar Aug 19 '21 20:08 andyleejordan

Hello, I have exactly the same issue and test results as mkanet with the latest VSCode 1.66.2 using PS 7.2 on Windows 10 19044.1645. Was a solution discovered for this issue?

Thank you!

allenschei avatar Apr 22 '22 22:04 allenschei

Hello @allenschei! The latest code is available in the PowerShell Preview for VS Code, and includes a myriad of fixes. Could you verify if this issue still reproduces using the preview extension?

andyleejordan avatar Apr 25 '22 16:04 andyleejordan

Hello Andy, thanks for your reply. I installed the PowerShell Preview extension and Iā€™m getting the same result. The preview pane on the left is completely empty.

Also, I just installed VS Code for the first time on Saturday 24th.

Thank you!

Allen Schei IT Systems Crown Enterprises dba: Sportsman and Ski Haus, Tri-State Outfitters

406-260-4800 @.@.>

@.@.

From: Andy Schwartzmeyer @.> Sent: Monday, April 25, 2022 10:17 AM To: PowerShell/vscode-powershell @.> Cc: Allen Schei @.>; Mention @.> Subject: Re: [PowerShell/vscode-powershell] (Preview) PowerShell Command Explorer completely empty (Logs included) (#3101)

Hello @allenscheihttps://scanmail.trustwave.com/?c=22645&d=58nm4iBdRg76sVPYv7jDrYAsBIq4DTT3Q09puKBkNg&s=1240&u=https%3a%2f%2fgithub%2ecom%2fallenschei! The latest code is available in the PowerShell Preview for VS Codehttps://scanmail.trustwave.com/?c=22645&d=58nm4iBdRg76sVPYv7jDrYAsBIq4DTT3Qxpt7fAwPg&s=1240&u=https%3a%2f%2fmarketplace%2evisualstudio%2ecom%2fitems%3fitemName%3dms-vscode%2ePowerShell-Preview, and includes a myriad of fixes. Could you verify if this issue still reproduces using the preview extension?

ā€” Reply to this email directly, view it on GitHubhttps://scanmail.trustwave.com/?c=22645&d=58nm4iBdRg76sVPYv7jDrYAsBIq4DTT3Q0k-76sxOA&s=1240&u=https%3a%2f%2fgithub%2ecom%2fPowerShell%2fvscode-powershell%2fissues%2f3101%23issuecomment-1108776857, or unsubscribehttps://scanmail.trustwave.com/?c=22645&d=58nm4iBdRg76sVPYv7jDrYAsBIq4DTT3Q0hu7_YzOg&s=1240&u=https%3a%2f%2fgithub%2ecom%2fnotifications%2funsubscribe-auth%2fAOYNML2A7ROGUHIDHOQJDUTVG3AONANCNFSM4VAQ7HKQ. You are receiving this because you were mentioned.Message ID: @.@.>>

allenschei avatar Apr 27 '22 20:04 allenschei

any solutions? have the same issue.

malimal99 avatar Nov 01 '22 13:11 malimal99

Is there any chance either of you have powershell.sideBar.CommandExplorerExcludeFilter set to something?

andyleejordan avatar Nov 01 '22 17:11 andyleejordan

It does not look like it. I assume you mean from defaultsettings.json/

// Specify array of Modules to exclude from Command Explorer listing.
"powershell.sideBar.CommandExplorerExcludeFilter": [],

// Specifies the visibility of the Command Explorer in the PowerShell

Side Bar. "powershell.sideBar.CommandExplorerVisibility": true,

malimal99 avatar Nov 01 '22 18:11 malimal99

I can't find the defaultsettings.json file, but here it is in Settings

image

allenschei avatar Nov 01 '22 19:11 allenschei

Hey @mkanet, I know this issue is from 2020. Is it still reproducing for you? I'm going to mark as "needs feedback" so it will auto-close in a week if I don't hear back from. For other users posting, if you are having problem today, please file a new issue so we can get back to you. Thanks all!

andyleejordan avatar Apr 27 '23 18:04 andyleejordan

@andschwa This feature stopped working for me a long time ago on both of my PCs. I provided all the necessary logs when I opened this issue already. Maybe a new duplicate issue could be opened by someone else if this issue auto-closes. Maybe they would have better luck getting the issue fixed.

mkanet avatar Apr 27 '23 19:04 mkanet

Is it still reproducing with the latest version of PowerShell, the extension, and VS Code? They've all gone through a ton of updates in the last three years since this was opened, so I want to confirm the bug is still extant.

I can't do much with the original logs provided from Extension v2020.6.0, as both the server and client have changed quite a ton so the logs no longer correlate. If it repros with v2023.4.1-preview, please get me some fresh logs so I can take a look!

Thanks!!

andyleejordan avatar Apr 27 '23 19:04 andyleejordan

Is it still reproducing with the latest version of PowerShell, the extension, and VS Code? They've all gone through a ton of updates in the last three years since this was opened, so I want to confirm the bug is still extant.

Yes, the same issue has been present on all versions of PowerShell extension (both previous and regular version). However, I am still using an older version of VSCode (version: 1.56.2 05/12/2021) due to another unrelated issue. Hence. I'm not in a position to do any more testing. I can close this issue now. If someone else wants to open a new issue with a current version of VSCode, they are welcome to do so.

mkanet avatar Apr 27 '23 19:04 mkanet

VSCode (version: 1.56.2 05/12/2021)

Ah, then you'll also be stuck on an older (and broken) version of the extension, v2021.12.0 (or v2022.2.2-preview, if you can get it). That's unfortunate! I hope you're able to get that updated at some point in the future. If you can get v2022.2.2-preview installed, it may be worth trying, as v2021.12.0 does not contain the rewrite of the pipeline that I think ultimately fixed this issue, but that preview does. Thing is, it's a preview while we were in the middle of testing the rewrite so it definitely had other issues.

Thanks for the follow-up, appreciate it!

andyleejordan avatar Apr 27 '23 20:04 andyleejordan

This issue has been marked as answered and has not had any activity in a day. It has been automatically closed for housekeeping purposes.

ghost avatar Apr 28 '23 21:04 ghost