fsprojects / zarchive-fsharpbinding

Archive of F# Language Bindings for Open Editors
Other
307 stars 106 forks source link

FSharpInteractivePad raises exception on Linux #130

Closed rneatherway closed 10 years ago

rneatherway commented 11 years ago

OK, I've done some testing on Linux in MD 4.0.2. The configure script and Makefile.orig seem a bit OSX-centric at the moment, I had to modify them to allow make to work correctly.

There is a long delay when bringing up the context menu the first time, and an exception is thrown. I'm including it here.

ERROR [2013-03-20 12:13:16Z]: Error while creating pad Help content.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Cannot cast from source type to destination type.
  at MonoDevelop.Ide.Gui.Pads.HelpTree.PopulateNode (TreeIter parent) [0x00001] in /auto/users/robnea/dev/mono-checkouts/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/MonodocTreePad.cs:120 
  at MonoDevelop.Ide.Gui.Pads.HelpTree..ctor () [0x0013e] in /auto/users/robnea/dev/mono-checkouts/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads/MonodocTreePad.cs:67 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000b9] in /home/scratch/robin/build/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:522 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000cb] in /home/scratch/robin/build/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:528 
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in /home/scratch/robin/build/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:540 
  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x0000e] in /home/scratch/robin/build/mono/mcs/class/corlib/System.Reflection/ConstructorInfo.cs:62 
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x000c7] in /home/scratch/robin/build/mono/mcs/class/corlib/System/Activator.cs:333 
  at Mono.Addins.RuntimeAddin.CreateInstance (System.String typeName, Boolean throwIfNotFound) [0x00017] in /auto/users/robnea/dev/mono-checkouts/monodevelop/main/external/mono-addins/Mono.Addins/Mono.Addins/RuntimeAddin.cs:431 
  at MonoDevelop.Ide.Codons.PadCodon.CreatePad () [0x0001d] in /auto/users/robnea/dev/mono-checkouts/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs:165 
  at MonoDevelop.Ide.Codons.PadCodon.InitializePadContent (IPadWindow window) [0x0000d] in /auto/users/robnea/dev/mono-checkouts/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Codons/PadCodon.cs:91 
  at MonoDevelop.Ide.Gui.PadWindow.CreateContent () [0x0000d] in /auto/users/robnea/dev/mono-checkouts/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IPadContainer.cs:276 
  at MonoDevelop.Ide.Gui.PadWindow.get_Content () [0x00001] in /auto/users/robnea/dev/mono-checkouts/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/IPadContainer.cs:161 
  at MonoDevelop.Ide.Gui.Pad.get_Content () [0x00001] in /auto/users/robnea/dev/mono-checkouts/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Pad.cs:61 
  at MonoDevelop.Ide.Gui.Workbench.GetPad[FSharpInteractivePad] () [0x0001d] in /auto/users/robnea/dev/mono-checkouts/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:271 
knocte commented 11 years ago

Can you file a bug in bugzilla.xamarin.com (product MonoDevelop) about the OSX-centric Makefiles please?

7sharp9 commented 11 years ago

@knocte Makefile.orig is from this repo.

knocte commented 11 years ago

And configure too?

rneatherway commented 11 years ago

Yes, sorry if that wasn't clear but this issue only affects this repo.

A little more info on Makefile.orig:

MDTOOL = $(MONO) INSERT_MDROOT/../../mdtool

On Linux, mdtool is to be found in a bin directory.

7sharp9 commented 10 years ago

Is this still an issue?

rneatherway commented 10 years ago

In MD 4.1.7 on Linux there is still a delay when bringing up the context menu for the first time, but no exception. May have been/still be related to #230

ghost commented 10 years ago

Closing this as it is old and seems to no longer be an issue