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

IndexOutOfRangeException from RenameToUpperCaseCodeFixProvider.RegisterCodeFixesAsync #3636

Closed
jnyrup opened this issue Apr 10, 2023 · 0 comments · Fixed by #3637
Closed
Labels

Comments

@jnyrup
Copy link

jnyrup commented Apr 10, 2023

In this snippet put the cursor on _ and press ctrl + ,

public class Class1
{
    void _() { }
}
System.IndexOutOfRangeException : Index was outside the bounds of the array.
   at async StyleCop.Analyzers.NamingRules.RenameToUpperCaseCodeFixProvider.RegisterCodeFixesAsync(<Unknown Parameters>)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.CodeAnalysis.CodeFixes.CodeFixService.GetCodeFixesAsync(<Unknown Parameters>)
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at async Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformFunctionAsync[T](<Unknown Parameters>)

version: 1.2.0-beta.435

bjornhellander added a commit to bjornhellander/StyleCopAnalyzers that referenced this issue Apr 12, 2023
bjornhellander added a commit to bjornhellander/StyleCopAnalyzers that referenced this issue Apr 12, 2023
bjornhellander added a commit to bjornhellander/StyleCopAnalyzers that referenced this issue Apr 13, 2023
@sharwell sharwell added this to the 1.2-beta.next milestone May 18, 2023
@sharwell sharwell added the fixed label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants