Bug 5541 - Stetic custom control support completely broken in MD 3.0
Summary: Stetic custom control support completely broken in MD 3.0
Status: REOPENED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: GTK# Designer ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-06-05 20:40 UTC by Mikayla Hutchinson [MSFT]
Modified: 2012-06-19 15:42 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 for Bug 5541 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
REOPENED

Description Mikayla Hutchinson [MSFT] 2012-06-05 20:40:12 UTC
Stetic in MD 3.0 cannot load any widgets from libraries or the current project. The "add" command in the toolbox shows an empty list. It worked (though not very reliably) in MD 2.8.
Comment 1 Mike Krüger 2012-06-06 04:33:40 UTC
I wouldn't say completly broken.

For me it works: http://screencast.com/t/OPXXDrFniYv

(But I'm using the master version btw.) Can you give me a hint how to break it ?
Comment 2 Mike Krüger 2012-06-09 04:00:36 UTC
seems to work for me, you should provide a use case.
Comment 6 Mikayla Hutchinson [MSFT] 2012-06-19 15:42:21 UTC
Maybe this has something to do with it:
Got exception loading objects: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'MonoDevelop.Core, Version=2.6.0.0, Culture=neutral, PublicKeyToken=null'
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00000] in <filename unknown>:0 
  at Stetic.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, System.String basePath) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.FindTypeDefinition (System.Collections.Hashtable visited, Stetic.AssemblyResolver resolver, System.String basePath, Mono.Cecil.AssemblyDefinition asm, System.String fullName) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.FindTypeDefinition (Stetic.AssemblyResolver resolver, Mono.Cecil.AssemblyDefinition assembly, System.String basePath, System.String fullName) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.AddObjects (System.Xml.XmlDocument doc, Stetic.AssemblyResolver resolver, System.String basePath, Mono.Cecil.AssemblyDefinition adef) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.GetObjectsDoc (Stetic.AssemblyResolver resolver, Mono.Cecil.AssemblyDefinition adef, System.String path, System.String baseDirectory) [0x00000] in <filename unknown>:0 
Got exception loading objects: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'MonoDevelop.Core, Version=2.6.0.0, Culture=neutral, PublicKeyToken=null'
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00000] in <filename unknown>:0 
  at Stetic.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, System.String basePath) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.FindTypeDefinition (System.Collections.Hashtable visited, Stetic.AssemblyResolver resolver, System.String basePath, Mono.Cecil.AssemblyDefinition asm, System.String fullName) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.FindTypeDefinition (Stetic.AssemblyResolver resolver, Mono.Cecil.AssemblyDefinition assembly, System.String basePath, System.String fullName) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.AddObjects (System.Xml.XmlDocument doc, Stetic.AssemblyResolver resolver, System.String basePath, Mono.Cecil.AssemblyDefinition adef) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.GetObjectsDoc (Stetic.AssemblyResolver resolver, Mono.Cecil.AssemblyDefinition adef, System.String path, System.String baseDirectory) [0x00000] in <filename unknown>:0 
WARNING [2012-06-18 18:07:57Z]: Gtk-Warning: Could not find the icon 'monodroid-project'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
	http://icon-theme.freedesktop.org/releases
Stack trace: 
   at Gtk.IconTheme.LoadIcon(System.String icon_name, Int32 size, IconLookupFlags flags)
   at Stetic.WidgetUtils.LoadIcon(System.String name, IconSize size)
   at Stetic.ImageInfo.GetImage(IProject project)
   at Stetic.Wrapper.Image.set_Pixbuf(Stetic.ImageInfo value)
   at System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception ByRef )
   at System.Reflection.MonoMethod.Invoke(System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
   at System.Reflection.MonoProperty.SetValue(System.Object obj, System.Object value, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] index, System.Globalization.CultureInfo culture)
   at System.Reflection.PropertyInfo.SetValue(System.Object obj, System.Object value, System.Object[] index)
   at Stetic.TypedPropertyDescriptor.SetValue(System.Object obj, System.Object value)
   at Stetic.WidgetUtils.ReadProperty(Stetic.ClassDescriptor klass, Stetic.ObjectWrapper wrapper, System.Object wrapped, System.Xml.XmlElement prop_node)
   at Stetic.WidgetUtils.ReadMembers(Stetic.ClassDescriptor klass, Stetic.ObjectWrapper wrapper, System.Object wrapped, System.Xml.XmlElement elem)
   at Stetic.WidgetUtils.Read(Stetic.ObjectWrapper wrapper, System.Xml.XmlElement elem)
   at Stetic.Wrapper.Widget.ReadProperties(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.Wrapper.Image.ReadProperties(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.Wrapper.Widget.Read(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.ObjectWrapper.ReadObject(Stetic.ObjectReader reader, System.Xml.XmlElement elem, Stetic.ObjectWrapper wrapper)
   at Stetic.ObjectWrapper.ReadObject(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.ObjectReader.ReadObject(System.Xml.XmlElement elem)
   at Stetic.Wrapper.Container.ReadChild(Stetic.ObjectReader reader, System.Xml.XmlElement child_elem)
   at Stetic.Wrapper.Container.ReadChildren(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.Wrapper.Container.Read(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.ObjectWrapper.ReadObject(Stetic.ObjectReader reader, System.Xml.XmlElement elem, Stetic.ObjectWrapper wrapper)
   at Stetic.ObjectWrapper.ReadObject(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.ObjectReader.ReadObject(System.Xml.XmlElement elem)
   at Stetic.Wrapper.Container.ReadChild(Stetic.ObjectReader reader, System.Xml.XmlElement child_elem)
   at Stetic.Wrapper.Container.ReadChildren(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.Wrapper.Container.Read(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.ObjectWrapper.ReadObject(Stetic.ObjectReader reader, System.Xml.XmlElement elem, Stetic.ObjectWrapper wrapper)
   at Stetic.ObjectWrapper.ReadObject(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.ObjectReader.ReadObject(System.Xml.XmlElement elem)
   at Stetic.Wrapper.Container.ReadChild(Stetic.ObjectReader reader, System.Xml.XmlElement child_elem)
   at Stetic.Wrapper.Container.ReadChildren(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.Wrapper.Container.Read(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.ObjectWrapper.ReadObject(Stetic.ObjectReader reader, System.Xml.XmlElement elem, Stetic.ObjectWrapper wrapper)
   at Stetic.ObjectReader.ReadObject(Stetic.ObjectWrapper wrapper, System.Xml.XmlElement elem)
   at Stetic.Wrapper.Container.ReadInternalChild(Stetic.ObjectReader reader, System.Xml.XmlElement child_elem)
   at Stetic.Wrapper.Container.ReadChildren(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.Wrapper.Dialog.ReadChildren(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.Wrapper.Container.Read(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.ObjectWrapper.ReadObject(Stetic.ObjectReader reader, System.Xml.XmlElement elem, Stetic.ObjectWrapper wrapper)
   at Stetic.ObjectWrapper.ReadObject(Stetic.ObjectReader reader, System.Xml.XmlElement elem)
   at Stetic.ProjectBackend.GetWidget(Stetic.WidgetData data)
   at Stetic.ProjectBackend.get_Toplevels()
   at Stetic.CodeGeneratorPartialClass.GenerateProjectGuiCode(Stetic.SteticCompilationUnit globalUnit, System.CodeDom.CodeNamespace globalNs, System.CodeDom.CodeTypeDeclaration globalType, Stetic.GenerationOptions options, System.Collections.Generic.List`1 units, Stetic.ProjectBackend[] projects, System.Collections.ArrayList warnings)
   at Stetic.CodeGenerator.GenerateProjectCode(Stetic.GenerationOptions options, Stetic.ProjectBackend[] projects)
   at Stetic.ApplicationBackend.GenerateProjectCode(Stetic.GenerationOptions options, Stetic.ProjectBackend[] projects)
   at Stetic.Application.GenerateProjectCode(Stetic.GenerationOptions options, Stetic.Project[] projects)
   at MonoDevelop.GtkCore.GuiBuilder.GuiBuilderService.GenerateSteticCode(IProgressMonitor monitor, MonoDevelop.Projects.DotNetProject project, MonoDevelop.Projects.ConfigurationSelector configuration)
   at MonoDevelop.GtkCore.GuiBuilder.Generator.Run(IProgressMonitor monitor, MonoDevelop.Projects.DotNetProject project, MonoDevelop.Projects.ConfigurationSelector configuration)
   at MonoDevelop.GtkCore.GuiBuilder.GtkProjectServiceExtension+<Build>c__AnonStorey3.<>m__3(System.Object , System.EventArgs )
   at Gtk.Application+InvokeCB.Invoke()
   at GLib.Timeout+TimeoutProxy.Handler()
   at Gtk.Application.gtk_main_iteration_do(Boolean )
   at Gtk.Application.RunIteration(Boolean blocking)
   at MonoDevelop.Ide.DispatchService.RunPendingEvents()
   at MonoDevelop.Ide.ProgressMonitoring.BaseProgressMonitor.RunPendingEvents()
   at MonoDevelop.Ide.Gui.StatusProgressMonitor.OnProgressChanged()
   at System.Runtime.Remoting.RemotingServices.InternalExecute(System.Reflection.MethodBase , System.Object , System.Object[] , System.Object[] ByRef )
   at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage(System.MarshalByRefObject target, IMethodCallMessage reqMsg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Lifetime.LeaseSink.SyncProcessMessage(IMessage msg)
   at MonoDevelop.Ide.Gui.SyncContextDispatchSink.DispatchMessage(System.Object data)
   at MonoDevelop.Ide.Gui.GuiSyncContext.Dispatch(MonoDevelop.Ide.StatefulMessageHandler cb, System.Object ob)
   at MonoDevelop.Ide.Gui.SyncContextDispatchSink.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.ClientActivatedIdentity.SyncObjectProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Contexts.CrossContextChannel.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Messaging.ClientContextTerminatorSink.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Messaging.EnvoyTerminatorSink.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(IMessage request)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception ByRef exc, System.Object[] ByRef out_args)
   at System.Object.__icall_wrapper_mono_remoting_wrapper(IntPtr , IntPtr )
   at MonoDevelop.Ide.ProgressMonitoring.BaseProgressMonitor.BeginTask(System.String name, Int32 totalWork)
   at System.Runtime.Remoting.RemotingServices.InternalExecute(System.Reflection.MethodBase , System.Object , System.Object[] , System.Object[] ByRef )
   at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage(System.MarshalByRefObject target, IMethodCallMessage reqMsg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Lifetime.LeaseSink.SyncProcessMessage(IMessage msg)
   at MonoDevelop.Ide.Gui.SyncContextDispatchSink.AsyncDispatchMessage(System.Object data)
   at MonoDevelop.Ide.StatefulMessageContainer.Run()
   at MonoDevelop.Ide.DispatchService.guiDispatcher()
   at GLib.Timeout+TimeoutProxy.Handler()
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at MonoDevelop.Ide.IdeApp.Run()
   at MonoDevelop.Ide.IdeStartup.Run(MonoDevelop.Ide.MonoDevelopOptions options)
   at MonoDevelop.Ide.IdeStartup.Main(System.String[] args)
   at MonoDevelop.Startup.MonoDevelopMain.Main(System.String[] args)
Got exception loading objects: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'MonoDevelop.Core, Version=2.6.0.0, Culture=neutral, PublicKeyToken=null'
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00000] in <filename unknown>:0 
  at Stetic.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, System.String basePath) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.FindTypeDefinition (System.Collections.Hashtable visited, Stetic.AssemblyResolver resolver, System.String basePath, Mono.Cecil.AssemblyDefinition asm, System.String fullName) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.FindTypeDefinition (Stetic.AssemblyResolver resolver, Mono.Cecil.AssemblyDefinition assembly, System.String basePath, System.String fullName) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.AddObjects (System.Xml.XmlDocument doc, Stetic.AssemblyResolver resolver, System.String basePath, Mono.Cecil.AssemblyDefinition adef) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.GetObjectsDoc (Stetic.AssemblyResolver resolver, Mono.Cecil.AssemblyDefinition adef, System.String path, System.String baseDirectory) [0x00000] in <filename unknown>:0 
Got exception loading objects: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'MonoDevelop.Core, Version=2.6.0.0, Culture=neutral, PublicKeyToken=null'
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00000] in <filename unknown>:0 
  at Stetic.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, System.String basePath) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.FindTypeDefinition (System.Collections.Hashtable visited, Stetic.AssemblyResolver resolver, System.String basePath, Mono.Cecil.AssemblyDefinition asm, System.String fullName) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.FindTypeDefinition (Stetic.AssemblyResolver resolver, Mono.Cecil.AssemblyDefinition assembly, System.String basePath, System.String fullName) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.AddObjects (System.Xml.XmlDocument doc, Stetic.AssemblyResolver resolver, System.String basePath, Mono.Cecil.AssemblyDefinition adef) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.GetObjectsDoc (Stetic.AssemblyResolver resolver, Mono.Cecil.AssemblyDefinition adef, System.String path, System.String baseDirectory) [0x00000] in <filename unknown>:0 
Got exception loading objects: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'MonoDevelop.Core, Version=2.6.0.0, Culture=neutral, PublicKeyToken=null'
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00000] in <filename unknown>:0 
  at Stetic.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, System.String basePath) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.FindTypeDefinition (System.Collections.Hashtable visited, Stetic.AssemblyResolver resolver, System.String basePath, Mono.Cecil.AssemblyDefinition asm, System.String fullName) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.FindTypeDefinition (Stetic.AssemblyResolver resolver, Mono.Cecil.AssemblyDefinition assembly, System.String basePath, System.String fullName) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.AddObjects (System.Xml.XmlDocument doc, Stetic.AssemblyResolver resolver, System.String basePath, Mono.Cecil.AssemblyDefinition adef) [0x00000] in <filename unknown>:0 
  at Stetic.LibraryCache.GetObjectsDoc (Stetic.AssemblyResolver resolver, Mono.Cecil.AssemblyDefinition adef, System.String path, System.String baseDirectory) [0x00000] in <filename unknown>:0