Bug 1006 - Unhandled Exception in HighlightingUsagesExtension
Summary: Unhandled Exception in HighlightingUsagesExtension
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-09-22 12:54 UTC by Marek Safar
Modified: 2011-09-26 06:33 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Marek Safar 2011-09-22 12:54:02 UTC
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[Mono.CSharp.Modifiers,ICSharpCode.NRefactory.CSharp.Modifiers].get_Item (Modifiers key) [0x000a8] in /home/marek/git/mono/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:149 
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.AddModifiers (ICSharpCode.NRefactory.CSharp.AttributedNode parent, Mono.CSharp.MemberLocations location) [0x0002a] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs:991 
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit (Mono.CSharp.Method m) [0x0001b] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs:902 
  at Mono.CSharp.Method.Accept (Mono.CSharp.StructuralVisitor visitor) [0x00000] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory/CSharp/Parser/mcs/method.cs:1107 
  at Mono.CSharp.StructuralVisitor.VisitTypeContainer (Mono.CSharp.TypeContainer tc) [0x00019] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory/CSharp/Parser/mcs/visit.cs:40 
  at Mono.CSharp.StructuralVisitor.Visit (Mono.CSharp.Class c) [0x00000] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory/CSharp/Parser/mcs/visit.cs:86 
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit (Mono.CSharp.Class c) [0x001bb] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs:421 
  at Mono.CSharp.Class.Accept (Mono.CSharp.StructuralVisitor visitor) [0x00000] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory/CSharp/Parser/mcs/class.cs:2516 
  at Mono.CSharp.StructuralVisitor.VisitNamespaceBody (Mono.CSharp.Namespace nspace) [0x00024] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory/CSharp/Parser/mcs/visit.cs:59 
  at ICSharpCode.NRefactory.CSharp.CSharpParser+ConversionVisitor.Visit (Mono.CSharp.Namespace nspace) [0x0007b] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs:297 
  at Mono.CSharp.UsingsBag+Namespace.Accept (Mono.CSharp.StructuralVisitor visitor) [0x00000] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory/CSharp/Parser/mcs/location.cs:782 
  at ICSharpCode.NRefactory.CSharp.CSharpParser.Parse (Mono.CSharp.CompilerCompilationUnit top, Int32 line) [0x0001a] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory/CSharp/Parser/CSharpParser.cs:3386 
  at MonoDevelop.CSharp.Parser.McsParser.Parse (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName, System.String content) [0x00315] in /home/marek/git/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Parser/McsParser.cs:137 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.DoParseFile (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName, System.String fileContent) [0x00078] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:948 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.ParseFile (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName, System.Func`1 getContent) [0x00013] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:251 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.ParseFile (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName) [0x00000] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:244 
  at MonoDevelop.Projects.Dom.Parser.ProjectDomService.GetParsedDocument (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, System.String fileName) [0x00022] in /home/marek/git/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Dom.Parser/ProjectDomService.cs:265 
  at MonoDevelop.CSharp.Resolver.NRefactoryResolver.SetupResolver (DomLocation resolvePosition, Boolean clearCache) [0x0002a] in /home/marek/git/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Resolver/NRefactoryResolver.cs:180 
  at MonoDevelop.CSharp.Resolver.NRefactoryResolver.SetupResolver (DomLocation resolvePosition) [0x00000] in /home/marek/git/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Resolver/NRefactoryResolver.cs:170 
  at MonoDevelop.CSharp.Resolver.NRefactoryResolver.Resolve (MonoDevelop.Projects.Dom.ExpressionResult expressionResult, DomLocation resolvePosition) [0x00000] in <filename unknown>:0 
  at MonoDevelop.CSharp.Resolver.TextEditorResolverProvider.GetLanguageItem (MonoDevelop.Projects.Dom.Parser.ProjectDom dom, Mono.TextEditor.TextEditorData data, Int32 offset, System.String expression) [0x000ef] in /home/marek/git/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Resolver/TextEditorResolverProvider.cs:225 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.GetLanguageItem (Int32 offset, System.String expression) [0x00012] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:528 
  at MonoDevelop.SourceEditor.SourceEditorView.GetLanguageItem (Int32 offset, System.String expression) [0x00000] in /home/marek/git/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1865 
  at MonoDevelop.CSharp.Highlighting.HighlightUsagesExtension.DelayedTooltipShow () [0x00103] in /home/marek/git/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Highlighting/HighlightUsagesExtension.cs:139
Comment 1 Mike Krüger 2011-09-26 06:33:23 UTC
should be fixed.