Closed iamleeg closed 11 years ago
Having logged the exception message (see the pull in #511), I see this:
[Error] Failed to load plugin: my-plugin reason: wrong constant name my-plugin
Where do I go from there?
OK, sorry for talking to myself in your issue tracker :-). You're not allowed to call a plugin my-plugin
, it needs to be capitalised and have no punctuation like MyPlugin. Could I please request that the additional diagnostic logging still be integrated to help diagnose that?
Those naming conventions are not unique to SiriProxy. They are particular to Ruby itself. I suggest you pick of a good Ruby book or watch some Ruby tutorials on YouTube.
Sure, I appreciate that the error was due to my config file being non-conformant: although it is particular to SiriProxy in that SiriProxy chooses to interpret plugin names as ruby constants, not as strings (another natural choice for names). But it'd still be great to be told how I messed up.
I'll look at your pull request and bounce off Pete
Elvis
On Apr 17, 2013, at 11:27, Graham Lee notifications@github.com wrote:
Sure, I appreciate that the error was due to my config file being non-conformant. But it'd still be great to be told how.
— Reply to this email directly or view it on GitHub.
fixed with pull request #511
Using the latest master:
There's no backtrace and no other information about why this plugin didn't load, and I'm far from being a ruby expert so it's hard for me to diagnose without any assistance.
Would it be possible to add more helpful diagnostics on plugin failure (and, in the meantime, does anyone have any hints regarding why a bundled and configured plugin would fail to load?)