[221] [VS2005] Extract method without contents

Hi,

Hmm somehow the R# error reporting service doesn't work anymore for me.

So here manual bug report:

I was trying to extract a method of a part without anything in it except
a comment (I know it's just lazyness not really refactoring, I usually
type in all code comments BEFORE starting any coding, works very good
for me I must say).

Regards, Wiebe

Stack trace:

JetBrains.ReSharper.Util.InternalErrorException: An exception has
occurred during action 'ExtractMethod' execution --->
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at
JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodModel.get_ReturnType()
in
c:\TEMP\tmpFE95.tmp\src\Refactorings\src\ExtractMethod\ExtractMethodModel.cs:line
75
at
JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodModel.CreateDeclaration()
in
c:\TEMP\tmpFE95.tmp\src\Refactorings\src\ExtractMethod\ExtractMethodModel.cs:line
370
at
JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodModel.CreateMethodDeclaration()
in
c:\TEMP\tmpFE95.tmp\src\Refactorings\src\ExtractMethod\ExtractMethodModel.cs:line
342
at
JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodPage.myDeclareStaticCheckBox_CheckedChanged(Object
sender, EventArgs e) in
c:\TEMP\tmpFE95.tmp\src\Refactorings\src\ExtractMethod\ExtractMethodPage.cs:line
472
at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
at System.Windows.Forms.CheckBox.set_Checked(Boolean value)
at
JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodPage..ctor(ExtractMethodModel
model, ExtractMethodRefactoringWorkflow workflow) in
c:\TEMP\tmpFE95.tmp\src\Refactorings\src\ExtractMethod\ExtractMethodPage.cs:line
286
at
JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodRefactoringWorkflow.Initialize(IDataContext
context, IInitializationContext initializationContext) in
c:\TEMP\tmpFE95.tmp\src\Refactorings\src\ExtractMethod\ExtractMethodRefactoringWorkflow.cs:line
111
at
JetBrains.ReSharper.Refactorings.Workflow.RefactoringActionUtil.ExecuteRefactoring(IDataContext
invocationContext, IRefactoringWorkflow refactoringWorkflow,
EventHandler refactoringExecutedHandler) in
c:\TEMP\tmpFE95.tmp\src\Refactorings\src\Workflow\RefactoringActionUtil.cs:line
27
at
JetBrains.ReSharper.Refactorings.ExtractMethod.ExtractMethodAction.Execute(IDataContext
context, DelegateExecute nextExecute) in
c:\TEMP\tmpFE95.tmp\src\Refactorings\src\ExtractMethod\ExtractMethodAction.cs:line
18
at
JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataContext
context) in
c:\TEMP\tmpFE95.tmp\src\ActionManagement\src\Action\ExecutableAction.cs:line
25
--- End of inner exception stack trace ---

at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String,
Boolean) in c:\TEMP\tmpFE95.tmp\src\Util\src\Logger.cs:line 297 column 9
at JetBrains.ReSharper.Util.Logger.LogException(String, Exception) in
c:\TEMP\tmpFE95.tmp\src\Util\src\Logger.cs:line 314 column 5
at
JetBrains.ReSharper.ActionManagement.ExecutableAction.Execute(IDataContext)
in
c:\TEMP\tmpFE95.tmp\src\ActionManagement\src\Action\ExecutableAction.cs:line
30 column 11
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction,
IDataContext) in
c:\TEMP\tmpFE95.tmp\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line
502 column 9
at
JetBrains.ReSharper.ActionManagement.ActionManagerBase.ExecuteAction(IExecutableAction)
in
c:\TEMP\tmpFE95.tmp\src\ActionManagement\src\ActionManager\ActionManagerBase.cs:line
489 column 5
at JetBrains.VSAddin.ActionManagement.VSActionManager.Exec(String,
vsCommandExecOption, Object&, Object&, Boolean&) in
c:\TEMP\tmpFE95.tmp\src\VSAddin\src\ActionManagement\VSActionManager.cs:line
389 column 11
at ReSharperAddIn.Exec(String, vsCommandExecOption, Object&, Object&,
Boolean&) in c:\TEMP\tmpFE95.tmp\src\VSAddin\src\Connect.cs:line 219
column 5

Please sign in to leave a comment.