Getting yield errors when attempting require of debugscript
I've been using johnrellis's excellent Debugging Toolkit (debugscript) to help improve my Lightroom plugin development flow. It's been useful in a couple of plugins I've worked on, but in one particular project I've been collaborating on, if even all I do is include the "require lines", the plugin fails to operate properly and I find the following in the Plugin Manager error log:
**** Error 1
An error occurred while attempting to run one of the plug-in’s scripts.
attempt to yield across metamethod/C-call boundary
**** Error 2
Could not load the post-processing filter from this plug-in.
attempt to yield across metamethod/C-call boundary
I initially had tried wrapping all the (documentation-hinted) functions in the Debug.showErrors() calls and thought I must have made a mistake somewhere when I found the plugin wasn't working. So I reverted my changes and found things working again; at least things which I wanted to debug were working in their buggy state. (Now I think it's getting near perfection.) It wasn't till later that I found that trying to include the debugscript, even for simple things like a call to Debug.lognpp(), would fail (even before making any calls to its functionality.
I wonder if anyone else has seen this error. To replicate it, simply check out the project and uncomment the require lines (currently only in a couple of the files (e.g. in DialogTagging.lua😞
local Require = require 'Require'.path ("../debugscript.lrdevplugin")
local Debug = require 'Debug'.init ()
require 'strict'
And, well, you would also need to create a free developer account on Clarifai.com and follow the installation/config to be able to attempt to run the script, but I promise that it will be worth the effort if you want a really cool keywording tool, integrated into Lightroom. I'd just love to be able to use the Debugging Toolkit with it and have no idea what would cause this kind of error. I searched and there are not any explicit calls to yield, so it must be some Lightroom quirk, but there is likely a workaround for our use (I hope)...
Happy to hear any kind of response.
