[MonoDevelop] Addin not loading automatically?

Noam Gat noamgat at gmail.com
Tue Apr 26 06:25:00 EDT 2011


On Sat, Apr 23, 2011 at 6:51 PM, Noam Gat <noamgat at gmail.com> wrote:

> Hi,
>
> I created an addin along the lines of the sample. I ended up with this XML
> :
>
> <Addin namespace   = "MonoDevelop"
>        id          = "UnityInterpreter"
>        name        = "Unity Python Interpreter"
>        author      = "Noam Gat"
>        copyright   = "MIT/X11"
>        url         = "http://www.monodevelop.com"
>        description = "Provides a command to run python code in a Unity
> Python Interpreter."
>        category    = "Unity Extensions"
>        version     = "2.0">
>
>     <Dependencies>
>         <Addin id="Ide" version="2.0"/>
>     </Dependencies>
>
>     <Extension path = "/MonoDevelop/Ide/Commands/Edit">
>         <Command id =
> "MonoDevelop.UnityInterpreter.UnityInterpreterCommands.RunCode"
>         _label = "Execute in Unity"
>         _description = "Run Code in Unity Interpreter"
>         shortcut = "F3"
>               defaultHandler =
> "MonoDevelop.UnityInterpreter.RunCodeHandler"  />
>     </Extension>
>
>     <Extension path = "/MonoDevelop/Ide/MainMenu/Run">
>         <CommandItem
> id="MonoDevelop.UnityInterpreter.UnityInterpreterCommands.RunCode" />
>     </Extension>
> </Addin>
>
> I implemented the classes and all. It works fine, with one problem. Even
> though the addin is loaded automatically when MonoDevelop starts, I only see
> the command in the run menu if I do :
>
> Tools -> Addin Manager -> Unity Extensions -> Unity Python Interpreter
>
> And then disable it, and then enable it again. After I do that, it works
> fine.
>
> It seems like something isn't loading automatically. Does anyone have any
> idea what it might be?
>

I'm trying to figure this one out, still no success, but more information :
1) When MonoDevelop loads, I don't see an "Add-in loaded :
MonoDevelop.UnityInterpreter"
2) When I go to the addin manager, I see it as enabled. However, disabling
it does not add anything to the message window.
3) When I enable it after disabling it, i see "Add-in loaded :
MonoDevelop.UnityInterpreter".
4) When I disable it after re-enabling it, I see "Add-in unloaded :
MonoDevelop.UnityInterpreter".

So there is a difference, and it looks like something is registering
incorrectly when monodevelop starts up. Why does it think that the addin is
enabled when it isnt?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20110426/703c539d/attachment.html 


More information about the Monodevelop-list mailing list