[MonoDevelop] Type incompatibility in installed addin causes abort

Rafael Teixeira monoman at gmail.com
Thu Sep 21 15:24:14 EDT 2006


After updating from svn, and doing make/make install, I was unable to
start md until I've uninstalled the ChangeLogAddIn v0.4.

 mdtool setup u ChangeLogAddIn

The error message was saying :

MonoDevelop failed to start. The following error has been reported:
Value must be a subclass of CommandHandler
(MonoDevelop.ChangeLogAddIn.InsertHeaderHandler).


System.ArgumentException: Value must be a subclass of CommandHandler
(MonoDevelop.ChangeLogAddIn.InsertHeaderHandler)
  at MonoDevelop.Components.Commands.ActionCommand.set_DefaultHandlerType
(System.Type value) [0x00000]
  at MonoDevelop.Core.Gui.Codons.CommandCodon.BuildItem (System.Object
owner, System.Collections.ArrayList subItems,
MonoDevelop.Core.AddIns.ConditionCollection conditions) [0x00000]
  at MonoDevelop.Core.AddIns.DefaultAddInTreeNode.BuildChildItems
(System.Object caller) [0x00000]
  at MonoDevelop.Core.AddIns.AddInService.GetTreeItems (System.String
path) [0x00000]
  at MonoDevelop.Core.AddIns.AddInService.RegisterExtensionItemListener
(System.String path, MonoDevelop.Core.AddIns.ExtensionItemListener
listener, Boolean notifyCurrentNodes) [0x00000]
  at MonoDevelop.Core.AddIns.AddInService.RegisterExtensionItemListener
(System.String path, MonoDevelop.Core.AddIns.ExtensionItemListener
listener) [0x00000]
  at MonoDevelop.Core.Gui.CommandService.LoadCommands (System.String
addinPath) [0x00000]
  at MonoDevelop.Ide.Gui.IdeApp.Initialize (IProgressMonitor monitor) [0x00000]
  at MonoDevelop.Ide.Gui.IdeStartup.Run (System.String[] args) [0x00000]


The error message was appearing inside a dialog box, Is there a way to
tell MD to log those messages to the console or a file also?

Anyway, I would like that MD on those situations didn't abort, but
just disabled the addin. Still the lack of some core addins would
probably be permitted to cause an abort.

After perusing the code and make-ing it some times, it was clear it
wasn't being recompiled with gmcs (make was happy with the months-old
mcs-compiled lib), so the solution was to make clean install in the
addin directory.

-- 
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw


More information about the Monodevelop-list mailing list