Reporter | ReSharper anonymous (resharper) |
---|---|
Created | Mar 22, 2012 2:23:23 PM |
Updated | Mar 22, 2012 10:32:44 PM |
Priority | Normal |
Type | Exception |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
ReSharper 7 Preview for Visual Studio 11 Beta EAP Version=7.0.0.325, Built=2012-03-02T19:39:56, Configuration=“Csharp PublicMode VS1100”
originalRange.Length == codeBehindStatement.GetTextLength()
--- EXCEPTION #1/1 [LoggerException]
Message = “originalRange.Length == codeBehindStatement.GetTextLength()”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.LastExtension = cshtml
Data.PlatformSccRevision = CompiledWithoutBuildServer
Data.ProductSccRevision = CompiledWithoutBuildServer
Data.VsVersion = 11.0.50214.1
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
”
originalRange.Length == codeBehindStatement.GetTextLength()
--- EXCEPTION #1/1 [LoggerException]
Message = “originalRange.Length == codeBehindStatement.GetTextLength()”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.LastExtension = cshtml
Data.PlatformSccRevision = CompiledWithoutBuildServer
Data.ProductSccRevision = CompiledWithoutBuildServer
Data.VsVersion = 11.0.50214.1
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.Psi.Razor.CSharp.Impl.CustomHandlers.RazorCSharpPsiServices.GetOriginalNodeAndTypeInternal(IBlock block, ITreeNode codeBehindStatement, Boolean first, TreeTextRange`1 generatedTreeRange) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\Razor.CSharp\src\Impl\CustomHandlers\RazorCSharpPsiServices.cs:line 472 at JetBrains.ReSharper.Psi.Razor.CSharp.Impl.CustomHandlers.RazorCSharpPsiServices.GetOriginalNodeAndType(IBlock block, ITreeNode codeBehindStatement, Boolean first, Predicate`1 checker) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\Razor.CSharp\src\Impl\CustomHandlers\RazorCSharpPsiServices.cs:line 433 at JetBrains.ReSharper.Psi.Razor.CSharp.Impl.CustomHandlers.RazorCSharpPsiServices.GetOriginalNodeAndTypeWithChecker(ITreeNode codeBehindStatement, Boolean first, Predicate`1 checker) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\Razor.CSharp\src\Impl\CustomHandlers\RazorCSharpPsiServices.cs:line 344 at JetBrains.ReSharper.Psi.Razor.CSharp.Impl.CustomHandlers.RazorCSharpPsiServices.GetOriginalNodeAndType(ITreeNode codeBehindStatement, Boolean first) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\Razor.CSharp\src\Impl\CustomHandlers\RazorCSharpPsiServices.cs:line 329 at JetBrains.ReSharper.Psi.Services.Razor.CSharp.RazorCSharpCustomIndentHandler.IndentHandler(ITreeNode node, CustomIndentType indentType, CSharpIndentHelper helper, CSharpCodeFormattingSettings settings) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\Services\Razor.CSharp\src\RazorCSharpCustomIndentHandler.cs:line 120 at JetBrains.ReSharper.Psi.Services.Razor.CSharp.RazorCSharpCustomIndentHandler.Indent(ITreeNode node, CustomIndentType indentType, CSharpCodeFormattingSettings settings) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\Services\Razor.CSharp\src\RazorCSharpCustomIndentHandler.cs:line 80 at JetBrains.ReSharper.Psi.CSharp.Impl.CodeStyle.CSharpIndentingStage.<>c__DisplayClass3.<GetCustomLineIndent>b__0(ICustomIndentHandler handler) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\CSharp\src\Impl\CodeStyle\Formatter\Indenting\CSharpIndentingStage.cs:line 58 at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate) at JetBrains.ReSharper.Psi.CSharp.Impl.CodeStyle.CSharpIndentingStage.GetCustomLineIndent(ITreeNode node, CustomIndentType indentType) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\CSharp\src\Impl\CodeStyle\Formatter\Indenting\CSharpIndentingStage.cs:line 55 at JetBrains.ReSharper.Psi.Impl.CodeStyle.CustomizableIndentCacheBase.GetCustomIndent(ITreeNode node, CustomIndentType customIndentType) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\CodeStyle\CustomizableIndentCacheBase.cs:line 22 at JetBrains.ReSharper.Psi.Impl.CodeStyle.StandardIndentCache`1.CalcLineIndent(ITreeNode node) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\CodeStyle\StandardIndentCache.cs:line 32 at JetBrains.Util.ElementsCache`2.Get(TKey key) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\Util\src\ElementsCache.cs:line 66 at JetBrains.ReSharper.Psi.Impl.CodeStyle.IndentCacheBase.GetLineIndent(ITreeNode node) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\CodeStyle\IndentCacheBase.cs:line 31 at JetBrains.ReSharper.Psi.Impl.CodeStyle.FormatterImplHelper.GetLineIndent(ITreeNode node, IndentCacheBase indentCache) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\CodeStyle\FormatterImplHelper.cs:line 384 at JetBrains.ReSharper.Psi.CSharp.Impl.CodeStyle.CSharpIndentingStage.CalcIndent(FormattingStageContext context) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\CSharp\src\Impl\CodeStyle\Formatter\Indenting\CSharpIndentingStage.cs:line 84 at JetBrains.ReSharper.Psi.CSharp.Impl.CodeStyle.CSharpIndentingStage.DoIndent(FormattingRange formattingRange, CSharpCodeFormattingContext context, CSharpCodeFormattingSettings settings, Boolean dontStickComments, IProgressIndicator progress) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\CSharp\src\Impl\CodeStyle\Formatter\Indenting\CSharpIndentingStage.cs:line 39 at JetBrains.ReSharper.Psi.CSharp.Impl.CodeStyle.CSharpFormatterImplHelper.DoIndent(CSharpCodeFormattingContext context, CSharpCodeFormattingSettings settings, Boolean dontStickComments, IProgressIndicator progress) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\CSharp\src\Impl\CodeStyle\Formatter\CSharpFormatterImplHelper.cs:line 232 at JetBrains.ReSharper.Psi.CSharp.Impl.CodeStyle.Formatter.CSharpCodeFormatter.Format(ITreeNode firstElement, ITreeNode lastElement, CSharpFormatProfile profile, IProgressIndicator progressIndicator, IContextBoundSettingsStore overrideSettingsStore) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\CSharp\src\Impl\CodeStyle\Formatter\CSharpCodeFormatter.cs:line 181 at JetBrains.ReSharper.Psi.CSharp.Impl.CodeStyle.Formatter.CSharpCodeFormatter.Format(ITreeNode firstElement, ITreeNode lastElement, CodeFormatProfile profile, IProgressIndicator progressIndicator, IContextBoundSettingsStore overrideSettingsStore) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\CSharp\src\Impl\CodeStyle\Formatter\CSharpCodeFormatter.cs:line 114 at JetBrains.ReSharper.Psi.Impl.CodeStyle.FormatterImplHelper.Format(IFile file, TreeTextRange range, CodeFormatProfile profile, OuterSpaceFormatType formatSpacesBefore, OuterSpaceFormatType formatSpacesAfter, IProgressIndicator progressIndicator, IContextBoundSettingsStore overrideSettingsStore) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\CodeStyle\FormatterImplHelper.cs:line 856 at JetBrains.ReSharper.Psi.Impl.CodeStyle.CodeFormatterBase.Format(IFile file, TreeTextRange range, CodeFormatProfile profile, OuterSpaceFormatType formatSpacesBefore, OuterSpaceFormatType formatSpacesAfter, IProgressIndicator progressIndicator, IContextBoundSettingsStore overrideSettingsStore) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\CodeStyle\CodeFormatterBase.cs:line 115 at JetBrains.ReSharper.Psi.CodeStyle.CodeFormatterHelper.FormatFileRange(IFile file, TreeTextRange range, CodeFormatProfile profile, IProgressIndicator progressIndicator) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\CodeStyle\CodeFormatterHelper.cs:line 59 at JetBrains.ReSharper.Psi.Razor.Impl.CodeStyle.RazorCodeFormatter.FormatMixedRangesInsideOriginal(IFile originalFile, IFile generatedFile, ITreeNode firstElement, ITreeNode lastElement, CodeFormatProfile profile, IProgressIndicator progressIndicator) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\Razor\src\Impl\CodeStyle\RazorCodeFormatter.cs:line 181 at JetBrains.ReSharper.Psi.Razor.Impl.CodeStyle.RazorCodeFormatter.TryCustomFormat(ITreeNode firstElement, ITreeNode lastElement, CodeFormatProfile profile, IProgressIndicator progressIndicator) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\Razor\src\Impl\CodeStyle\RazorCodeFormatter.cs:line 223 at JetBrains.ReSharper.Psi.Html.Impl.CodeStyle.HtmlCodeFormatter.FormatInternal(ITreeNode firstElement, ITreeNode lastElement, CodeFormatProfile profile, IProgressIndicator progressIndicator, IContextBoundSettingsStore overrideSettingsStore) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\Html\src\Impl\CodeStyle\HtmlCodeFormatter.cs:line 122 at JetBrains.ReSharper.Psi.Html.Impl.CodeStyle.HtmlCodeFormatter.Format(ITreeNode firstElement, ITreeNode lastElement, CodeFormatProfile profile, IProgressIndicator progressIndicator, IContextBoundSettingsStore overrideSettingsStore) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\Html\src\Impl\CodeStyle\HtmlCodeFormatter.cs:line 81 at JetBrains.ReSharper.Psi.Impl.CodeStyle.FormatterImplHelper.Format(IFile file, TreeTextRange range, CodeFormatProfile profile, OuterSpaceFormatType formatSpacesBefore, OuterSpaceFormatType formatSpacesAfter, IProgressIndicator progressIndicator, IContextBoundSettingsStore overrideSettingsStore) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\CodeStyle\FormatterImplHelper.cs:line 856 at JetBrains.ReSharper.Psi.Impl.CodeStyle.CodeFormatterBase.Format(IFile file, TreeTextRange range, CodeFormatProfile profile, OuterSpaceFormatType formatSpacesBefore, OuterSpaceFormatType formatSpacesAfter, IProgressIndicator progressIndicator, IContextBoundSettingsStore overrideSettingsStore) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\impl\CodeStyle\CodeFormatterBase.cs:line 115 at JetBrains.ReSharper.Psi.CodeStyle.CodeFormatterHelper.FormatFileRange(IFile file, TreeTextRange range, CodeFormatProfile profile, IProgressIndicator progressIndicator) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Psi\_Core\src\CodeStyle\CodeFormatterHelper.cs:line 59 at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.WebTypingAssist`4.FormatAfterEnter(ITextControl textControl) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\Html\src\TypingAssist\WebTypingAssist.cs:line 619 at JetBrains.ReSharper.Feature.Services.Html.TypingAssist.WebTypingAssist`4.HandleEnterPressed(IActionContext context) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\Html\src\TypingAssist\WebTypingAssist.cs:line 540 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistManager.ChainedContextBase`2.CallNext() in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\_Core\src\TypingAssist\TypingAssistManager.cs:line 167 at JetBrains.ReSharper.Feature.Services.CSharp.TypingAssist.CSharpTypingAssistBase.HandleEnterPressed(IActionContext context) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\CSharp\src\TypingAssist\CSharpTypingAssistBase.cs:line 974 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistManager.ChainedContextBase`2.CallNext() in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\_Core\src\TypingAssist\TypingAssistManager.cs:line 167 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistManager.Handle[TContext,THandler](TContext context, List`1 handlers, ChainedContextBase`2 chainedContextFactory) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\_Core\src\TypingAssist\TypingAssistManager.cs:line 65 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistManager.<>c__DisplayClass2.<Act>b__1(Lifetime lifetime) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\_Core\src\TypingAssist\TypingAssistManager.cs:line 72 at JetBrains.DataFlow.Lifetimes.Using(Action`1 F) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\Util\src\DataFlow\Lifetime\Lifetimes.cs:line 20 at JetBrains.ReSharper.Feature.Services.TypingAssist.TypingAssistManager.Act(ITextControl textControl, String actionId, DelegateExecute nextExecute) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\_Core\src\TypingAssist\TypingAssistManager.cs:line 74 at JetBrains.ReSharper.Feature.Services.TypingAssist.ExternalActionHandler.Execute(IDataContext context, DelegateExecute nextExecute) in c:\BuildAgent\work\1939c01d7b25093a\Psi.Features\src\Services\_Core\src\TypingAssist\ExternalActionHandler.cs:line 38 at JetBrains.ActionManagement.ExecutableAction.Execute(IDataContext context) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\UI\src\ActionSystem\Action\ExecutableAction.cs:line 36 at JetBrains.ActionManagement.ActionManager.CoreExecuteAction(IExecutableAction action, IDataContext context) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\UI\src\ActionSystem\ActionManager\ActionManager.cs:line 184 at JetBrains.VsIntegration.ActionManagement.VsActionManager.CoreExecuteAction(IExecutableAction action, IDataContext context) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\ActionManagement\VSActionManager.cs:line 1375 at JetBrains.ActionManagement.ActionManager.<>c__DisplayClass3.<ExecuteActionUnsafe>b__2(Lifetime lifetime) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\UI\src\ActionSystem\ActionManager\ActionManager.cs:line 146 at JetBrains.DataFlow.Lifetimes.Using(Action`1 F) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\Util\src\DataFlow\Lifetime\Lifetimes.cs:line 20 at JetBrains.ActionManagement.ActionManager.ExecuteActionUnsafe(IExecutableAction action, IDataContext dataContextOverride) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\UI\src\ActionSystem\ActionManager\ActionManager.cs:line 147 at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClasse.<TryDelegateToReSharper_NonTyping>b__d() in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 279 at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.WithRegisteredDelegateBackToVsHandler(String sCommandName, Action`1 FExecDelegateBackToVs, Action FRun) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 351 at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.TryDelegateToReSharper_NonTyping(CommandID commandid, Action`1 FExecDelegateBackToVs) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 279 at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.TryDelegateToReSharper(Boolean bIsTyping, CommandID commandid, IntPtr pvaIn, Action`1 FExecDelegateBackToVsClosed) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 258 at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.<>c__DisplayClass19.<Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec>b__17() in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 406 at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\Util\src\Concurrency\ReentrancyGuard.cs:line 266 at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\Util\src\Concurrency\ReentrancyGuard.cs:line 415 at JetBrains.VsIntegration.Whidbey.TextControl.VsTextControlOleCommandTarget.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroupRef, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) in c:\BuildAgent\work\1939c01d7b25093a\Platform\src\VisualStudio\Core\src\TextControl\VsTextControlOleCommandTarget.cs:line 395 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.InnerExec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Editor.Implementation.VsCodeWindowAdapter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)