madskristensen / TrailingWhitespace

Display trailing whitespace in any VS editor
123 stars 19 forks source link

"Visual Studio has encountered an unexpected error" when pressing F7 during a build #50

Open jonathanmcdougall opened 5 years ago

jonathanmcdougall commented 5 years ago

I'm getting a dialog box that says "Visual Studio has encountered an unexpected error." whenever I press F7 (Build solution) while a build is already in progress and the keyboard focus is in an editor. I don't get it when the focus is in the Output window. Reproduced on 16.0 P1 and 15.9.3.

It seems to have been introduced in this commit. Removing VSConstants.VSStd97CmdID.BuildSln from _cmdId fixes the problem. I tried figuring out where this error actually comes from, but I can't find anything.

MichaelGoulding commented 5 years ago

I run into this constantly.

swinefeaster commented 4 years ago

me too, super annoying please fix