Pegasus
Pegasus copied to clipboard
Double click on error in Visual Studio sometimes works, sometimes not
It seems totally random. Compile errors show up nicely in the Visual Studio Error List, and double clicking often opens the PEG file at the right place, sometimes it opens the generated CS file, and sometimes it does nothing at all.
Easily reproduced, because it happens all the time, but not easy to pin down any specific factor. Annoying, rather than showstopper.
I have seen this only in VS2017, is this your experience as well?
I'm still on VS2015, hope to upgrade soon (when I get a round TUIT). Happens regularly.
Now on VS2019, exactly the same experience. Sometimes the error links to the peg file, sometimes to the generated code, sometimes to nothing at all. I'll try to get an example.
Here is an error where double clicking doesn't work:
1>D:\MyDocs\dev\Polyomino\PuzzLang\PuzzLangLib\obj\Debug\PuzzLangParser.peg(73,53,73,54): error CS0103: The name 'v' does not exist in the current context
The location is perfectly correct, but VS does not go there.
Something I never noticed before: the errors that don't work on double click have Suppression State set to Active. This could be the vital clue.
Severity Code Description Project File Line Suppression State Error CS0103 The name 'y' does not exist in the current context PuzzLangLib D:\MyDocs\dev\Polyomino\PuzzLang\PuzzLangLib\obj\Debug\PuzzLangParser.peg 137 Active