[MonoDevelop] Some troubles with svn build

Bill Middleton Bill Middleton <flashdict@gmail.com>
Thu, 14 Apr 2005 11:37:31 +0200


 I'm building monodevelop and pretty much  everything else including
gtk-sharp, gtksourceview-sharp,  gtkmozembed-sharp, etc, from Svn. I'm
also running gnome 2.10 with gtk 2.6.4 on FreeBSD, so I realize that
I'm not fully supported.

 Nevertheless,  pretty much everything works ok in monodevelop -
startup, documentation, solution/file/classes/help view, menus, etc.,
until I try to open or created a file which has a know mime type. Then
I get errors from GLib.Object.GetObject(), when gtksourceview tries to
cast the raw pointer from the call to

gtk_source_languages_manager_get_language_from_mime_type(Handle, mime_type)

into a (GtkSourceView.SourceLanguage) ref, using GetObject().  A short
stack dump follows this message.  Now, GLib.Object handles hundreds of
other pointers and refs  quite successfully in monodevelop, so  I
guess I hoped that maybe someone had seen this specific error?

Thanks for any advice.  And regrets if this mail gets posted twice.=20
Seems I wasn't fully subscribed before sending the original, so it
went to the moderator.  Moderator, please disregard the first email.


Error while loading System.InvalidCastException: Cannot cast from
source type to destination type.
in <0x0007c> GtkSourceView.SourceLanguagesManager:GetLanguageFromMimeType(S=
in <0x00013> MonoDevelop.Services.SourceViewService:GetLanguageFromMimeType
(System.String mimetype)
in <0x00016> MonoDevelop.SourceEditor.Gui.SourceEditorBuffer:LoadText
(System.String text, System.String mime)
in <0x00036> MonoDevelop.SourceEditor.Gui.SourceEditorBuffer:LoadFile
(System.String file, System.String mime)
in <0x00050> MonoDevelop.SourceEditor.Gui.SourceEditorDisplayBindingWrapper=
(System.String fileName)
in <0x0002a> MonoDevelop.SourceEditor.Gui.SourceEditorDisplayBinding:Create=
(System.String fileName)
in <0x00023> MonoDevelop.Services.DefaultFileService+LoadFileWrapper:Invoke
(System.String fileName)
in (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_string (string)
in <0x00014> MonoDevelop.Core.Services.FileUtilityService+LoadWrapper:Invok=
e ()
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void ()
in <0x00018> MonoDevelop.Core.Services.FileUtilityService:ObservedLoad
(MonoDevelop.Core.Services.FileOperationDelegate saveFile,
System.String fileName, System.String message, FileErrorPolicy policy)