Action:
Breakpoint after codeline:
var highlightingDefinition = HighlightingManager.Instance.GetDefinition("C#");
Typing into console window (the last dot caused the exception):
highlightingDefinition.NamedHighlightingColors.
Exception:
.NET Version : 4.0.30319.18449
OS Version : Microsoft Windows NT 6.2.9200.0
Current culture : German (Germany) (de-DE)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 474544kb
GC Heap Memory : 239600kb
Unhandled WPF exception
Exception thrown:
System.ArgumentOutOfRangeException: Value must be between 0 and 0
Parametername: offset
Der tatsächliche Wert war 46.
bei ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetLocation(Int32 offset)
bei Debugger.AddIn.Pads.Controls.DebuggerDotCompletion.PrepareDotCompletion(String expressionToComplete, DebuggerCompletionContext context)
bei ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.ShowDotCompletion(StackFrame frame, String currentText)
bei ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.AbstractConsolePadTextEntered(Object sender, TextCompositionEventArgs e)
bei System.Windows.Input.TextCompositionEventHandler.Invoke(Object sender, TextCompositionEventArgs e)
bei ICSharpCode.AvalonEdit.Editing.TextArea.OnTextEntered(TextCompositionEventArgs e)
bei ICSharpCode.AvalonEdit.Editing.TextArea.PerformTextInput(TextCompositionEventArgs e)
bei ICSharpCode.AvalonEdit.Editing.TextArea.OnTextInput(TextCompositionEventArgs e)
bei System.Windows.UIElement.OnTextInputThunk(Object sender, TextCompositionEventArgs e)
bei System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)
bei System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
bei System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition)
bei System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
bei System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
bei System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
23:39:47.984 [1] INFO - Evaluated node '[23]' in 9 ms
23:39:47.994 [1] INFO - Evaluated node '[24]' in 9 ms
23:39:48.004 [1] INFO - Evaluated node '[25]' in 9 ms
23:39:48.014 [1] INFO - Evaluated node '[26]' in 9 ms
23:39:48.024 [1] INFO - Evaluated node '[27]' in 9 ms
23:39:48.033 [1] INFO - Evaluated node '[28]' in 9 ms
23:39:48.043 [1] INFO - Evaluated node '[29]' in 9 ms
23:40:32.241 [1] INFO - Evaluated node '[26]' in 11 ms (result cached)
23:40:32.246 [1] INFO - Evaluated node 'Background' in 16 ms
23:40:32.280 [1] INFO - Evaluated node 'FontStyle' in 33 ms
23:40:32.285 [1] INFO - Evaluated node 'FontWeight' in 4 ms
23:40:32.291 [1] INFO - Evaluated node 'Foreground' in 5 ms
23:40:32.294 [1] INFO - Evaluated node 'IsFrozen' in 3 ms
23:40:32.294 [1] INFO - Evaluated node 'Name' in 0 ms
23:41:55.215 [1] DEBUG - Resolved (Line 72, Col 18) to [LocalResolveResult ICSharpCode.AvalonEdit.Highlighting.IHighlightingDefinition highlightingDefinition;]
23:41:55.896 [1] DEBUG - Resolved (Line 72, Col 17) to [LocalResolveResult ICSharpCode.AvalonEdit.Highlighting.IHighlightingDefinition highlightingDefinition;]
23:41:55.902 [1] INFO - Evaluated node 'highlightingDefinition' in 6 ms
23:41:56.630 [1] DEBUG - Resolved (Line 72, Col 17) to [LocalResolveResult ICSharpCode.AvalonEdit.Highlighting.IHighlightingDefinition highlightingDefinition;]
23:41:56.642 [1] INFO - Evaluated node 'highlightingDefinition' in 12 ms
23:42:03.003 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad
23:42:05.961 [1] DEBUG - context used for dot completion: namespace ICSharpCode.XamlBinding {
partial class XamlOutlineContentHost {
void __DebuggerStub_UpdateTree (ICSharpCode.NRefactory.Xml.AXmlDocument root)
{
ICSharpCode.AvalonEdit.Highlighting.IHighlightingDefinition highlightingDefinition;
ICSharpCode.XamlBinding.XamlOutlineNode <>g__initLocal0;
ICSharpCode.XamlBinding.XamlOutlineContentHost @this;
$highlightingDefinition.|$
}
}
}
23:42:05.982 [1] DEBUG - ParseInformationUpdated C:\Downloads\SharpDevelop\SharpDevelop_5.0.0.4184_Source\src\AddIns\BackendBindings\XamlBinding\XamlBinding\XamlOutlineContentHost.xaml.cs (updated)
23:42:06.020 [1] DEBUG - Folding update ignored; parse information is outdated version
23:42:09.282 [1] DEBUG - context used for dot completion:
23:42:09.283 [1] ERROR - Unhandled WPF exception
--> Exception:
System.ArgumentOutOfRangeException: Value must be between 0 and 0
Parametername: offset
Der tatsächliche Wert war 46.
bei ICSharpCode.NRefactory.Editor.ReadOnlyDocument.GetLocation(Int32 offset)
bei Debugger.AddIn.Pads.Controls.DebuggerDotCompletion.PrepareDotCompletion(String expressionToComplete, DebuggerCompletionContext context)
bei ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.ShowDotCompletion(StackFrame frame, String currentText)
bei ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad.AbstractConsolePadTextEntered(Object sender, TextCompositionEventArgs e)
bei System.Windows.Input.TextCompositionEventHandler.Invoke(Object sender, TextCompositionEventArgs e)
bei ICSharpCode.AvalonEdit.Editing.TextArea.OnTextEntered(TextCompositionEventArgs e)
bei ICSharpCode.AvalonEdit.Editing.TextArea.PerformTextInput(TextCompositionEventArgs e)
bei ICSharpCode.AvalonEdit.Editing.TextArea.OnTextInput(TextCompositionEventArgs e)
bei System.Windows.UIElement.OnTextInputThunk(Object sender, TextCompositionEventArgs e)
bei System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)
bei System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
bei System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition)
bei System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
bei System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
bei System.Windows.Input.InputManager.ProcessStagingArea()
bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
bei System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
---- Post-error application state information:
Installed 3rd party AddIns: [ThemeTool 0.0.0.0]
ProjectService.CurrentSolution: [Solution C:\Downloads\SharpDevelop\SharpDevelop_5.0.0.4184_Source\SharpDevelop.sln with 76 projects]
ProjectService.CurrentProject: [CSharpProject: XamlBinding]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Gui.Pads.ConsolePad
SharpDevelop Version : 5.0.0.4184-Beta 2-62e91ac3