-
Notifications
You must be signed in to change notification settings - Fork 510
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
SA1133CodeFixProvider crash #1878
Comments
Thanks for the report! I am very much hoping this reproduces the problem in our unit tests. 😄 |
This code is enough to reproduce the problem. I've created a new branch in my fork in order to try fixing the issue. Here is the regression test: https://github.com/NikolayIT/StyleCopAnalyzers/commit/f25bde0e7eb2efa9e6a936e72dcbaf112606a968 The test is failing with
|
Well, that was very easy to fix. I am sending a pull request in a minute. |
@NikolayIT Make sure to send your pull request to the stabilization branch instead of the default master branch. |
@sharwell did it 😄 |
Fix #1878 (SA1133CodeFixProvider crash with System.InvalidCastException)
Given the following code :
SA1133 is raised on
Bar
usage but activating the CodeFix throw an exception :(VS2015 update 1, StyleCop 1.0 RC1)
The text was updated successfully, but these errors were encountered: