question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When PowerShell crashes and you use Restart Session cache for commands is not cleared

See original GitHub issue

System Details

System Details Output

### VSCode version: 1.32.1 05f146c7a8f7f78e80261aa3b2a2e642586f9eb3 x64

### VSCode extensions:
atomiks.moonlight@0.7.0
CoenraadS.bracket-pair-colorizer-2@0.0.28
donjayamanne.githistory@0.4.6
eamodio.gitlens@9.5.1
ecmel.vscode-html-css@0.2.0
emmanuelbeziat.vscode-great-icons@2.1.47
GitHub.vscode-pull-request-github@0.5.0
Kelvin.vscode-sshfs@1.14.0
liximomo.remotefs@0.0.13
monokai.theme-monokai-pro-vscode@1.1.12
ms-vscode.PowerShell@1.11.0
PKief.material-icon-theme@3.6.3
shd101wyy.markdown-preview-enhanced@0.3.12
WakaTime.vscode-wakatime@1.2.12
yzhang.markdown-all-in-one@2.1.1


### PSES version: 1.11.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      5.1.17763.316
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.316
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

When PowerShell Session crashes you can restart it and so I do. Problem is that with each restart cache for commands is not cleared so you end up with this:

image

Expected Behaviour

Restart of the session should clear everything, just like it is when you reopen VSCode.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
TylerLeonhardtcommented, Apr 12, 2019

Ah! @PrzemyslawKlys you might be getting completions from both source AND then generated module!

1reaction
PrzemyslawKlyscommented, Apr 11, 2019

image

Nope.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where does Powershell ISE store tabs when it crashes?
Using Process Monitor, I've found that the ISE stores and loads its recovered files from: %LOCALAPPDATA%\Microsoft_Corporation\powershell_ise.
Read more >
Reset-ProvisioningCache (ExchangePowerShell)
The Reset-ProvisioningCache cmdlet clears the Windows PowerShell provisioning cache of frequently used Active Directory objects. To reduce Active Directory ...
Read more >
How to Clear the Cache in Windows 10 - Alphr
Windows Command Prompt is the first option. Click on Start, then put cmd into the search box. Choose Run as Administrator from the...
Read more >
How to correctly reset, restart, and recycle IIS websites
Whatever your goal, resetting IIS or stopping IIS services is not the right answer. I wish we had removed the IISRESET command when...
Read more >
PowerShell ISE Clear Variables without restarting
How to clear variables in PowerShell ISE Editor without restarting ... this together we can use a single command to have a fresh...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found