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

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

Open General-Gouda opened this issue 9 years ago • 5 comments

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: 
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

$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

General-Gouda avatar Jun 22 '17 15:06 General-Gouda

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

daviwil avatar Jun 22 '17 15:06 daviwil

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.

daviwil avatar Jun 26 '17 23:06 daviwil

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.

mattmcnabb avatar Jun 27 '17 00:06 mattmcnabb

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.

General-Gouda avatar Jun 27 '17 14:06 General-Gouda

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.

JustinGrote avatar Apr 22 '20 16:04 JustinGrote