Bug 5086 - Attaching events via GUI Designer is not working anymore on MD 3.0
Summary: Attaching events via GUI Designer is not working anymore on MD 3.0
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: GTK# Designer ()
Version: 3.0.x
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
: 5196 5323 5367 ()
Depends on:
Blocks:
 
Reported: 2012-05-15 03:47 UTC by hustinetten.baer
Modified: 2012-05-28 17:22 UTC (History)
6 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:
RESOLVED FIXED

Description hustinetten.baer 2012-05-15 03:47:43 UTC
Everytime i try to attach an event via the GUI designer i get the following Exception:
It doesn't matter which Event or which widget it is. Everytime a NotImplementedException is thrown.
I am currently working on MAC OS X 10.7.3
I also tested this under Win and the same Exception is thrown.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotImplementedException: The requested feature is not implemented.
  at MonoDevelop.Ide.TypeSystem.CodeGenerationService.GetSuitableInsertionPoint (IEnumerable`1 points, IUnresolvedTypeDefinition cls, IUnresolvedMember member) [0x0003e] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/CodeGenerationService.cs:335 
  at MonoDevelop.Ide.TypeSystem.CodeGenerationService.AddNewMember (ITypeDefinition type, IUnresolvedTypeDefinition part, IUnresolvedMember newMember, Boolean implementExplicit) [0x00043] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/CodeGenerationService.cs:91 
  at MonoDevelop.GtkCore.GuiBuilder.CodeBinder.BindSignal (Stetic.Signal signal) [0x000de] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore.GuiBuilder/CodeBinder.cs:182 
  at MonoDevelop.GtkCore.GuiBuilder.GuiBuilderView.OnSignalAdded (System.Object sender, Stetic.ComponentSignalEventArgs args) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore.GuiBuilder/GuiBuilderView.cs:316 
  at Stetic.WidgetDesigner.OnSignalAdded (System.Object sender, Stetic.ComponentSignalEventArgs args) [0x0000b] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.GtkCore/libsteticui/WidgetDesigner.cs:341 
  at Stetic.Project+<NotifySignalAdded>c__AnonStoreyD.<>m__17 (System.Object , System.EventArgs ) [0x00034] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.GtkCore/libsteticui/Project.cs:605 
  at Stetic.GuiDispatch.InvokeSync (System.EventHandler h) [0x00018] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.GtkCore/libsteticui/GuiDispatchServerSink.cs:123 
  at Stetic.Project.NotifySignalAdded (System.Object obj, System.String name, Stetic.Signal signal) [0x00022] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.GtkCore/libsteticui/Project.cs:601 
  at (wrapper remoting-invoke-with-check) Stetic.Project:NotifySignalAdded (object,string,Stetic.Signal)
  at Stetic.ProjectBackend.Stetic.IProject.NotifySignalAdded (Stetic.SignalEventArgs args) [0x00017] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.GtkCore/libsteticui/ProjectBackend.cs:825 
  at Stetic.ObjectWrapper.OnSignalAdded (Stetic.SignalEventArgs args) [0x0001d] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.GtkCore/libstetic/ObjectWrapper.cs:395 
  at Stetic.SignalCollection.OnInsertComplete (Int32 index, System.Object value) [0x0001c] in /Users/builder/data/lanes/monodevelop-mac-3.0.1/6642975f/source/monodevelop/main/src/addins/MonoDevelop.GtkCore/libstetic/wrapper/SignalCollection.cs:67 
  at System.Collections.CollectionBase.System.Collections.IList.Add (System.Object value) [0x00028] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Collections/CollectionBase.cs:145 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Reflection/MonoMethod.cs:234 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Reflection/MethodBase.cs:96 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000bf] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System/Delegate.cs:408 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System/MulticastDelegate.cs:70 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System/Delegate.cs:382 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
Comment 1 hustinetten.baer 2012-05-15 03:49:34 UTC
Here is the Stacktrace on Win:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotImplementedException: The method or operation is not implemented.
   at MonoDevelop.Ide.TypeSystem.CodeGenerationService.GetNewMethodPosition(IEnumerable`1 points, IUnresolvedTypeDefinition cls)
   at MonoDevelop.Ide.TypeSystem.CodeGenerationService.GetSuitableInsertionPoint(IEnumerable`1 points, IUnresolvedTypeDefinition cls, IUnresolvedMember member)
   at MonoDevelop.Ide.TypeSystem.CodeGenerationService.AddNewMember(ITypeDefinition type, IUnresolvedTypeDefinition part, IUnresolvedMember newMember, Boolean implementExplicit)
   at MonoDevelop.GtkCore.GuiBuilder.CodeBinder.BindSignal(Signal signal)
   at MonoDevelop.GtkCore.GuiBuilder.GuiBuilderView.OnSignalAdded(Object sender, ComponentSignalEventArgs args)
   at Stetic.WidgetDesigner.OnSignalAdded(Object sender, ComponentSignalEventArgs args)
   at Stetic.Project.<>c__DisplayClass12.<NotifySignalAdded>b__11(Object , EventArgs )
   at Stetic.GuiDispatch.InvokeSync(EventHandler h)
   at Stetic.Project.NotifySignalAdded(Object obj, String name, Signal signal)
   at Stetic.ProjectBackend.Stetic.IProject.NotifySignalAdded(SignalEventArgs args)
   at Stetic.ObjectWrapper.OnSignalAdded(SignalEventArgs args)
   at Stetic.SignalCollection.OnInsertComplete(Int32 index, Object value)
   at System.Collections.CollectionBase.System.Collections.IList.Add(Object value)
   at Stetic.SignalCollection.Add(Signal signal)
   at Stetic.SignalsEditorBackend.AddHandler(TreeIter iter, String name)
   at Stetic.SignalsEditorBackend.OnRowActivated(Object sender, RowActivatedArgs args)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at GLib.Signal.ClosureInvokedCB(Object o, ClosureInvokedArgs args)
   at GLib.SignalClosure.Invoke(ClosureInvokedArgs args)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
Comment 2 Mike Krüger 2012-05-15 04:35:27 UTC
Fixed in master.
Comment 3 enricova16 2012-05-24 14:21:15 UTC
What means "Fixed in master"?
In which version I can find the fix?

Thanks
Comment 4 Mike Krüger 2012-05-24 14:46:29 UTC
in the git master branch - https://github.com/mono/monodevelop

We'll release a new version soon.
Comment 5 Mikayla Hutchinson [MSFT] 2012-05-25 11:49:29 UTC
*** Bug 5196 has been marked as a duplicate of this bug. ***
Comment 6 Mikayla Hutchinson [MSFT] 2012-05-25 11:52:29 UTC
*** Bug 5323 has been marked as a duplicate of this bug. ***
Comment 7 Mikayla Hutchinson [MSFT] 2012-05-28 17:22:58 UTC
*** Bug 5367 has been marked as a duplicate of this bug. ***