Bug 11481 - InvalidOperationException in highlight usages
Summary: InvalidOperationException in highlight usages
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Mac OS
: Low normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-03-29 19:08 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-04-02 04:56 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 Mikayla Hutchinson [MSFT] 2013-03-29 19:08:47 UTC
ERROR [2013-03-29 18:51:50Z]: Error in highlight usages extension.
System.InvalidOperationException: Operation is not valid due to the current state of the object
  at System.Linq.Enumerable.Last[Identifier] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x0006b] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12.git/mcs/class/System.Core/System.Linq/Enumerable.cs:1197 
  at System.Linq.Enumerable.Last[Identifier] (IEnumerable`1 source, System.Func`2 predicate) [0x00007] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-2.10.12.git/mcs/class/System.Core/System.Linq/Enumerable.cs:1218 
  at MonoDevelop.CSharp.Refactoring.CSharpReferenceFinder.GetReference (ICSharpCode.NRefactory.Semantics.ResolveResult result, ICSharpCode.NRefactory.CSharp.AstNode node, System.String fileName, Mono.TextEditor.TextEditorData editor) [0x001ed] in /Users/michael/Mono/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Refactoring/CSharpReferenceFinder.cs:145 
  at MonoDevelop.CSharp.Refactoring.CSharpReferenceFinder+<FindInDocument>c__AnonStorey30.<>m__45 (ICSharpCode.NRefactory.CSharp.AstNode astNode, ICSharpCode.NRefactory.Semantics.ResolveResult r) [0x0001d] in /Users/michael/Mono/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Refactoring/CSharpReferenceFinder.cs:225 
  at ICSharpCode.NRefactory.CSharp.Resolver.FindReferences+FindReferenceNavigator.ReportMatch (ICSharpCode.NRefactory.CSharp.AstNode node, ICSharpCode.NRefactory.Semantics.ResolveResult result) [0x0000c] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/FindReferences.cs:211 
  at ICSharpCode.NRefactory.CSharp.Resolver.FindReferences+FindReferenceNavigator.ICSharpCode.NRefactory.CSharp.Resolver.IResolveVisitorNavigator.Resolved (ICSharpCode.NRefactory.CSharp.AstNode node, ICSharpCode.NRefactory.Semantics.ResolveResult result) [0x0001a] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/FindReferences.cs:200 
  at ICSharpCode.NRefactory.CSharp.Resolver.DetectSkippableNodesNavigator.Resolved (ICSharpCode.NRefactory.CSharp.AstNode node, ICSharpCode.NRefactory.Semantics.ResolveResult result) [0x00001] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/DetectSkippableNodesNavigator.cs:79 
  at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.StoreResult (ICSharpCode.NRefactory.CSharp.AstNode node, ICSharpCode.NRefactory.Semantics.ResolveResult result) [0x00080] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:264 
  at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Resolve (ICSharpCode.NRefactory.CSharp.AstNode node) [0x0006c] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:221 
  at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Scan (ICSharpCode.NRefactory.CSharp.AstNode node) [0x00120] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:192 
  at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ScanChildren (ICSharpCode.NRefactory.CSharp.AstNode node) [0x0000e] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:270 
  at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.ICSharpCode.NRefactory.CSharp.IAstVisitor<ICSharpCode.NRefactory.Semantics.ResolveResult>.VisitSyntaxTree (ICSharpCode.NRefactory.CSharp.SyntaxTree unit) [0x0007f] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:544 
  at ICSharpCode.NRefactory.CSharp.SyntaxTree.AcceptVisitor[ResolveResult] (IAstVisitor`1 visitor) [0x00001] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/SyntaxTree.cs:145 
  at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.Scan (ICSharpCode.NRefactory.CSharp.AstNode node) [0x000cd] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:176 
  at ICSharpCode.NRefactory.CSharp.Resolver.CSharpAstResolver.ApplyNavigator (IResolveVisitorNavigator navigator, CancellationToken cancellationToken) [0x0005a] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/CSharpAstResolver.cs:148 
  at ICSharpCode.NRefactory.CSharp.Resolver.FindReferences.FindReferencesInFile (IList`1 searchScopes, ICSharpCode.NRefactory.CSharp.TypeSystem.CSharpUnresolvedFile unresolvedFile, ICSharpCode.NRefactory.CSharp.SyntaxTree syntaxTree, ICompilation compilation, ICSharpCode.NRefactory.CSharp.Resolver.FoundReferenceCallback callback, CancellationToken cancellationToken) [0x000cc] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Resolver/FindReferences.cs:416 
  at MonoDevelop.CSharp.Refactoring.CSharpReferenceFinder.FindInDocument (MonoDevelop.Ide.Gui.Document doc) [0x001c8] in /Users/michael/Mono/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Refactoring/CSharpReferenceFinder.cs:223 
  at MonoDevelop.CSharp.Highlighting.HighlightUsagesExtension.GetReferences (ICSharpCode.NRefactory.Semantics.ResolveResult resolveResult) [0x000e2] in /Users/michael/Mono/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Highlighting/HighlightUsagesExtension.cs:213
Comment 1 Mike Krüger 2013-04-02 04:56:34 UTC
fixed