Bug 16850 - Search box not giving a result in some cases
Summary: Search box not giving a result in some cases
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 4.2.x
Hardware: Macintosh Mac OS
: High normal
Target Milestone: 4.2.3 (from master)
Assignee: Mike Krüger
URL:
: 17004 ()
Depends on:
Blocks:
 
Reported: 2013-12-17 12:20 UTC by Lluis Sanchez
Modified: 2014-01-06 05:30 UTC (History)
3 users (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:
VERIFIED FIXED

Description Lluis Sanchez 2013-12-17 12:20:27 UTC
I tried searching for a class and I was getting no result. It showed "Searching..." and never finished. I looked at the log and I found this:

ERROR [2013-12-17 18:16:51Z]: Error getting search results
System.AggregateException:  ---> System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Ide.TypeSystem.TypeSystemService+UnresolvedAssemblyProxy.ICSharpCode.NRefactory.TypeSystem.IAssemblyReference.Resolve (ITypeResolveContext context) [0x00008] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs:2011 
  at ICSharpCode.NRefactory.TypeSystem.Implementation.SimpleCompilation..ctor (ISolutionSnapshot solutionSnapshot, IUnresolvedAssembly mainAssembly, IEnumerable`1 assemblyReferences) [0x0009f] in /Users/lluis/prog/work/master/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory/TypeSystem/Implementation/SimpleCompilation.cs:71 
  at MonoDevelop.Ide.TypeSystem.MonoDevelopCompilation..ctor (ISolutionSnapshot solutionSnapshot, MonoDevelop.Ide.TypeSystem.MonoDevelopProjectContent content, IEnumerable`1 assemblyReferences) [0x00000] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopProjectContent.cs:83 
  at MonoDevelop.Ide.TypeSystem.MonoDevelopProjectContent.CreateCompilation () [0x0000f] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopProjectContent.cs:63 
  at MonoDevelop.Ide.TypeSystem.TypeSystemService+ProjectContentWrapper+LazyProjectLoader.ICSharpCode.NRefactory.TypeSystem.IProjectContent.CreateCompilation () [0x00007] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs:1394 
  at MonoDevelop.Ide.TypeSystem.TypeSystemService+ProjectContentWrapper.get_Compilation () [0x00026] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs:1125 
  at MonoDevelop.Ide.TypeSystem.TypeSystemService.GetCompilation (MonoDevelop.Projects.Project project) [0x0001a] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs:2389 
  at MonoDevelop.Components.MainToolbar.ProjectSearchCategory+<>c__Iterator27.MoveNext () [0x001e9] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/ProjectSearchCategory.cs:80 
  at System.Linq.Enumerable.First[ITypeDefinition] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x0001f] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.5/mcs/class/System.Core/System.Linq/Enumerable.cs:813 
  at System.Linq.Enumerable.FirstOrDefault[ITypeDefinition] (IEnumerable`1 source) [0x00006] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.5/mcs/class/System.Core/System.Linq/Enumerable.cs:855 
  at MonoDevelop.Components.MainToolbar.ProjectSearchCategory+<GetResults>c__AnonStorey139.<>m__2BB () [0x00111] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/ProjectSearchCategory.cs:111 
  --- End of inner exception stack trace ---
 --> (Inner exception 0) System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Ide.TypeSystem.TypeSystemService+UnresolvedAssemblyProxy.ICSharpCode.NRefactory.TypeSystem.IAssemblyReference.Resolve (ITypeResolveContext context) [0x00008] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs:2011 
  at ICSharpCode.NRefactory.TypeSystem.Implementation.SimpleCompilation..ctor (ISolutionSnapshot solutionSnapshot, IUnresolvedAssembly mainAssembly, IEnumerable`1 assemblyReferences) [0x0009f] in /Users/lluis/prog/work/master/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory/TypeSystem/Implementation/SimpleCompilation.cs:71 
  at MonoDevelop.Ide.TypeSystem.MonoDevelopCompilation..ctor (ISolutionSnapshot solutionSnapshot, MonoDevelop.Ide.TypeSystem.MonoDevelopProjectContent content, IEnumerable`1 assemblyReferences) [0x00000] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopProjectContent.cs:83 
  at MonoDevelop.Ide.TypeSystem.MonoDevelopProjectContent.CreateCompilation () [0x0000f] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/MonoDevelopProjectContent.cs:63 
  at MonoDevelop.Ide.TypeSystem.TypeSystemService+ProjectContentWrapper+LazyProjectLoader.ICSharpCode.NRefactory.TypeSystem.IProjectContent.CreateCompilation () [0x00007] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs:1394 
  at MonoDevelop.Ide.TypeSystem.TypeSystemService+ProjectContentWrapper.get_Compilation () [0x00026] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs:1125 
  at MonoDevelop.Ide.TypeSystem.TypeSystemService.GetCompilation (MonoDevelop.Projects.Project project) [0x0001a] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/TypeSystemService.cs:2389 
  at MonoDevelop.Components.MainToolbar.ProjectSearchCategory+<>c__Iterator27.MoveNext () [0x001e9] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/ProjectSearchCategory.cs:80 
  at System.Linq.Enumerable.First[ITypeDefinition] (IEnumerable`1 source, System.Func`2 predicate, Fallback fallback) [0x0001f] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.5/mcs/class/System.Core/System.Linq/Enumerable.cs:813 
  at System.Linq.Enumerable.FirstOrDefault[ITypeDefinition] (IEnumerable`1 source) [0x00006] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.5/mcs/class/System.Core/System.Linq/Enumerable.cs:855 
  at MonoDevelop.Components.MainToolbar.ProjectSearchCategory+<GetResults>c__AnonStorey139.<>m__2BB () [0x00111] in /Users/lluis/prog/work/master/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.MainToolbar/ProjectSearchCategory.cs:111
Comment 1 Mike Krüger 2014-01-02 04:15:39 UTC
*** Bug 17004 has been marked as a duplicate of this bug. ***
Comment 2 Mike Krüger 2014-01-02 04:19:32 UTC
fixed
Comment 3 Mohit Kheterpal 2014-01-06 05:30:35 UTC
Today we have checked this issue with following builds :

XS 4.2.3 (build 24)

Now we are able to search class when we right click on any class and select "Find References" then it shows all classes in search window.

Screencast : http://www.screencast.com/t/GvBEleHq

As of now we are closing this issue.

Please let us know if we have to check something else to verify this issue.