Bug 11667 - Document Outline updating error
Summary: Document Outline updating error
Status: RESOLVED DUPLICATE of bug 10945
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 4.0.3
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-04-09 05:49 UTC by Maxim
Modified: 2013-04-09 08:28 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 DUPLICATE of bug 10945

Description Maxim 2013-04-09 05:49:58 UTC
I'm using Document Outline pad. XS shows error and DO not updating when opening file with such content:

	public class CacheAsync
	{
		class Helper <ID, PARENTID>
		{
                    // CODE
		}

            // CODE
        }

Yet, if remove two type parameters, no error occured and DO works fine:

	public class CacheAsync
	{
		class Helper
		{
                    // CODE
		}

            // CODE
        }


Stack:
System.InvalidOperationException: Comparison threw an exception. ---> System.InvalidCastException: Cannot cast from source type to destination type.
  at MonoDevelop.DesignerSupport.ClassOutlineNodeComparer.GetRegion (System.Object o) [0x00064] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/ClassOutlineNodeComparer.cs:294 
  at MonoDevelop.DesignerSupport.ClassOutlineNodeComparer.CompareRegion (System.Object o1, System.Object o2) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/ClassOutlineNodeComparer.cs:299 
  at System.Array.qsort[Object] (System.Object[] array, Int32 low0, Int32 high0, System.Comparison`1 comparison) [0x00093] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/Array.cs:1793 
  at System.Array.SortImpl[Object] (System.Object[] array, Int32 length, System.Comparison`1 comparison) [0x0000e] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/Array.cs:1678 
  --- End of inner exception stack trace ---
  at System.Array.SortImpl[Object] (System.Object[] array, Int32 length, System.Comparison`1 comparison) [0x00020] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System/Array.cs:1682 
  at System.Collections.Generic.List`1[System.Object].Sort (System.Comparison`1 comparison) [0x00011] in /private/tmp/source/bockbuild/profiles/mono-2-10/build-root/mono-2.10.12/_build/mono-2.10.12.git/mcs/class/corlib/System.Collections.Generic/List.cs:581 
  at MonoDevelop.DesignerSupport.ClassOutlineTextEditorExtension.AddTreeClassContents (Gtk.TreeStore store, TreeIter parent, MonoDevelop.Ide.TypeSystem.ParsedDocument parsedDocument, ITypeDefinition cls, IUnresolvedTypeDefinition part) [0x00109] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/ClassOutlineTextEditorExtension.cs:352 
  at MonoDevelop.DesignerSupport.ClassOutlineTextEditorExtension.BuildTreeChildren (Gtk.TreeStore store, TreeIter parent, MonoDevelop.Ide.TypeSystem.ParsedDocument parsedDocument) [0x00084] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/ClassOutlineTextEditorExtension.cs:334 
  at MonoDevelop.DesignerSupport.ClassOutlineTextEditorExtension.RefillOutlineStore () [0x00052] in /Users/builder/data/lanes/monodevelop-lion-bs1/fae7c2bd/source/monodevelop/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport/ClassOutlineTextEditorExtension.cs:304 
  at GLib.Timeout+TimeoutProxy.Handler () [0x00000] in <filename unknown>:0
Comment 1 Mike Krüger 2013-04-09 08:28:37 UTC
Should be fixed in our next release.

*** This bug has been marked as a duplicate of bug 10945 ***