Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SA1202 thrown an exception of type KeyNotFoundException #1507

Closed
NikolayIT opened this issue Sep 19, 2015 · 2 comments
Closed

SA1202 thrown an exception of type KeyNotFoundException #1507

NikolayIT opened this issue Sep 19, 2015 · 2 comments
Assignees
Milestone

Comments

@NikolayIT
Copy link
Member

I am not sure when exactly did that message show up but I've deleted a C# class file before the message and then rebuild.
untitled
Message text:
Message AD0001 The User Diagnostic Analyzer 'StyleCop.Analyzers.OrderingRules.SA1202ElementsMustBeOrderedByAccess' threw an exception of type 'System.Collections.Generic.KeyNotFoundException' with message 'The given key was not present in the dictionary.'.
Restarting Visual Studio of course fixed the problem.

@bexxx
Copy link
Collaborator

bexxx commented Nov 8, 2015

I think I found a repro case. Took me a while staring at the screen :)

@bexxx
Copy link
Collaborator

bexxx commented Nov 8, 2015

Pull request for fix: #1740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants