SergeyTeplyakov / ErrorProne.NET

Set of roslyn-based analyzers for catching common C# errors (inspired by Google's error-prone)
MIT License
886 stars 42 forks source link

EPC12 creates diagnostic with description "bar" #246

Closed shuebner closed 8 months ago

shuebner commented 2 years ago

Version: 0.1.2 and 0.4.0-beta.1 alike

When only observing the Message property of an exception, VS shows a strange message "bar" from EPC12: image

This can even show up in the error list: image

Also note that in the first screenshot, we get two diagnostics. The second one references a non-existing line number 22.

Could this be some foo/bar/baz code left behind somewhere? I already searched for "bar" in this repo and the roslyn and roslyn-analyzer repos, but could not find any plausible usages.

SergeyTeplyakov commented 2 years ago

Thanks for reporiting this. Its already being fixed in the master, but I haven't published a new version yet.

SergeyTeplyakov commented 8 months ago

Closing this issue, since the new version was released with the fix.