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

Errors/Warnings still show up in Problems window when file is closed #314

Closed
adbertram opened this issue Oct 8, 2016 · 4 comments
Closed
Labels
Issue-Bug A bug to squash.
Milestone

Comments

@adbertram
Copy link
Contributor

Please fill in these details so that we can help you!

System Details

  • Operating system name and version: MacOS Sierra
  • VS Code version: 1.5.3
  • PowerShell extension version: 0.7.2
  • Output from $PSVersionTable:
PSVersion                      6.0.0-alpha                                                                                                                                                                                      
PSEdition                      Core                                                                                                                                                                                             
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                                                          
BuildVersion                   3.0.0.0                                                                                                                                                                                          
GitCommitId                    v6.0.0-alpha.9                                                                                                                                                                                   
CLRVersion                                                                                                                                                                                                                      
WSManStackVersion              3.0                                                                                                                                                                                              
PSRemotingProtocolVersion      2.3                                                                                                                                                                                              
SerializationVersion           1.1.0.1        

Issue Description

Whenever I have a file open in an editor that has a problem with PSScriptAnalyzer and close it, the entry still exists in the Problems window.

image

@daviwil
Copy link
Contributor

daviwil commented Oct 8, 2016

Hmmm, I wonder if VS Code has a bug there. I'll look into it.

@yllekz
Copy link

yllekz commented Apr 22, 2019

Hi folks, this issue is still happening in VS Code to this day. Any traction on fixing it?

Problems view does not always expunge files that are closed, rather they remain in the view. This happens in particular with large .ps1 and .psm1 files but I've occasionally seen it crop up with smaller files as well.

@rjmholt
Copy link
Collaborator

rjmholt commented Apr 22, 2019

@yllekz The issue indicates this was fixed in PowerShell/PowerShellEditorServices#322. If you're experiencing this again, would be able to open a new issue with a reproduction of the problem? The code has changed a fair amount since this issue was closed, so we'll need information about what's going on to fix it, as detailed in the troubleshooting doc.

@yllekz
Copy link

yllekz commented Apr 23, 2019

Yes, it is very much still a problem. I will be opening up a new issue then. I wanted to first comment on this one to avoid duplication of effort if applicable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug A bug to squash.
Projects
None yet
Development

No branches or pull requests

5 participants