Do

Can't run my own plugin "Could not read add-in file: ..."

Asked by Marf

Every time I try run a plugin, which i compiled myself, I get the following error:

ERROR: Could not read add-in file: /home/marf/.local/share/gnome-do/plugins/<plugin_name>.dll

Compilation didn't throw any warnings or errors. DLL is readable and obviously deletable by Gnome-Do ;)

OS is (X)Ubuntu 8.04
gmcs version is 1.2.6.0
MonoDevelop version is 1.0
Gnome-Do version is 0.5.0.1

What I did:
* followed the tutorial 'BuildingPlugins', compiled via gmcs -> fail
* used MonoDevelop to compile 0.4 plugins from the source package -> fail
* compiled Gnome-Do from the source package, built plugin -> fail

Where it fails:
I pinned it down to ...
PluginManager.cs
  internal static void InstallLocalPlugins (SetupService setup) { ...
    setup.BuildPackage (...

What I tried:
* modified the PluginManager in hope to get more information about why it doesn't load the plugin
* wrote a simple statusMonitor (IProgressStatus) to hopefully catch an Exception, but didn't get any more information besides the above mentioned Error

What I noticed:
* the plugins in the tarballs use a Do.Addins package version 1.0.+++ (according to MonoDevelop Projects)
* to build my own plugin I had to reference the registered package Do.Addins version 0.5.0.1

Any pointers where to look next?

Thank you for Gnome-Do ... I love it ... Now if i only could run my own plugins :)

Question information

Language:
English Edit question
Status:
Solved
For:
Do Edit question
Assignee:
No assignee Edit question
Solved by:
David Siegel
Solved:
Last query:
Last reply:
Revision history for this message
Best David Siegel (djsiegel-deactivatedaccount) said :
#1

Unfortunately, the plugin writing guide is a bit out of date. Please open the Do Plugins project MonoDevelop solution (DoPlugins.mds) and see how the individual plugins are set up. They now require one additional step -- you must add a file called YOURPLUGINNAME.addin.xml as a resource within the dll. Check out how the Firefox plugin uses Firefox.addin.xml. Then, your plugin should be loaded correctly.

Revision history for this message
Marf (lpad-o-sirtwist) said :
#2

Thanks David Siegel, that solved my question.

Revision history for this message
Marf (lpad-o-sirtwist) said :
#3

Thank you, works like charm!