Pegasus icon indicating copy to clipboard operation
Pegasus copied to clipboard

Double click on error in Visual Studio sometimes works, sometimes not

Open david-pfx opened this issue 6 years ago • 5 comments

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.

david-pfx avatar Jan 10 '18 23:01 david-pfx

I have seen this only in VS2017, is this your experience as well?

otac0n avatar Apr 26 '18 03:04 otac0n

I'm still on VS2015, hope to upgrade soon (when I get a round TUIT). Happens regularly.

david-pfx avatar Apr 26 '18 03:04 david-pfx

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.

david-pfx avatar Sep 16 '22 02:09 david-pfx

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.

david-pfx avatar Sep 18 '22 07:09 david-pfx

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

david-pfx avatar Oct 06 '22 00:10 david-pfx