PowerShell / vscode-powershell

Provides PowerShell language and debugging support for Visual Studio Code
https://marketplace.visualstudio.com/items/ms-vscode.PowerShell
MIT License
1.69k stars 487 forks source link

Syntax error markers do not go away after the issue is corrected #914

Open General-Gouda opened 7 years ago

General-Gouda commented 7 years ago

System Details

OS: Windows 10 Enterprise 
Version         InstallDate                     OSArchitecture
-------          -----------                    --------------
10.0.14393         1/26/2017 7:52:53 PM                    64-bit

code -v:
1.13.1
379d2efb5539b09112c793d3d9a413017d736f89

$pseditor.EditorServicesVersion:
Major  Minor  Build  Revision
-----  -----  -----  --------
1      4      0      0

Extensions: 
DotJoshJohnson.xml@1.9.1
jchannon.csharpextensions@1.3.0
jmrog.vscode-nuget-package-manager@1.1.3
MS-DevSkim.vscode-devskim@0.1.4
ms-vscode.csharp@1.10.0
ms-vscode.PowerShell@1.4.0
ms-vsts.team@1.119.0
qinjia.seti-icons@0.1.3
Tyriar.theme-sapphire@0.2.1

$PSVersionTable:
Name                           Value
----                           -----
PSVersion                      5.1.14393.1358
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.1358
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

VSCode error parser got stuck showing an error on a piece of code that had been corrected. Would not clear until after VSCode was closed/reopened.

2017-06-22_11-04-48

daviwil commented 7 years ago

Thanks Matt! I've seen this one too, will investigate.

daviwil commented 7 years ago

Hey Matt, do you find that you can reproduce this issue reliably or does it only happen in random cases? I'm having a hard time reproducing it reliably.

mattmcnabb commented 7 years ago

I can chime in as well - I've seen this, and so far it appears to be totally random. However, I didn't have to close the editor - I could edit the line containing the marker (add a space, etc.) and this would clear the violation.

General-Gouda commented 7 years ago

It does appear for me pretty randomly and it certainly isn't consistent on its timing. I can say that I see it most often within hash tables or custom object building where the key/value pairs are between curly braces. Can't say I've seen it too much outside of that.

JustinGrote commented 4 years ago

I've seen this issue inconsistently as well, it doesn't seem like the PSES is hung, but doing a restart session will "fix" the stalled parsing.