Page 1 of 1

Plugin Config Window Not Popping Up

PostPosted: Sun Mar 11, 2018 9:43 am
by Colorado4Wheeler
I've got a bizarre issue that's holding up releasing my plugin and it's that the config window doesn't automatically pop up on a new installation. Pretty much every plugin I've ever installed will pop that config unless there is either already a plugin preference file or there's no PluginConfig.xml.

My plugin does not pop this dialog at all unless I disable Homebridge Buddy. When HBB is disabled it pops up every time.

So my question is how and why is this happening? Is it a bug? My cfBundleIdentifier is different for each plugin, so I cannot imagine what about HBB could possibly prevent the dialog from popping up.

Re: Plugin Config Window Not Popping Up

PostPosted: Sun Mar 11, 2018 1:27 pm
by jay (support)
No errors on plugin load? And if not, you're sure that you're not swallowing any exceptions by accident?

Re: Plugin Config Window Not Popping Up

PostPosted: Sun Mar 11, 2018 4:07 pm
by Colorado4Wheeler
jay (support) wrote:
No errors on plugin load?

Not a single one.

jay (support) wrote:
And if not, you're sure that you're not swallowing any exceptions by accident?

I don't think so because I'm a pretty prolific error trapper, I encapsulate every function in a Try...Except for just that reason, and none of them Pass, they all report the error. Again, it's only when HBB is enabled.

Where in the order of things does that window appear, is it before startup or after? Perhaps that would help me narrow it down if it's in the plugin. I believe all plugin libraries load before startup if I'm not mistaken, is that when the config happens is right before calling startup or right after?

I went through my entire startup routine just to see if I'm doing anything that might ignore an error and it's not, it is also not doing anything with HBB. But, in particular I would expect that since it's only happening with HBB enabled that it would have something to do with either calling or referencing something HBB related which I don't think is happening unless they issue a very specific command in the menu.

I'll try disabling libraries to see what may be the cause but it's quite perplexing.

Re: Plugin Config Window Not Popping Up

PostPosted: Sun Mar 11, 2018 4:39 pm
by Colorado4Wheeler
And now I can't get it to break again. Grrrrrr.