3 Replies Latest reply on Nov 11, 2012 3:29 PM by areohbee

    LrCatalog.withProlongedWriteAccessDo broken?

    jarnoh Level 1

      I was going to release my old unreleased plugin, but looks like things aren't working anymore with Lightroom 4.2.  I'm using withProlongedWriteAccessDo method for convenience, but it is throwing an error for me:

       

      Oops! An untagged string (?:0: attempt to call field 'getProgressScope' (a nil value)) got thrown far enough that we display it to the user. This shouldn't happen.

       

      I agree, it shouldn't happen.

       

      Minimal code:

       

      LrTasks.startAsyncTask(function()

                local kat = LrApplication.activeCatalog()

                logger:debug("start")

                kat:withProlongedWriteAccessDo({

                          title="dada",

                          pluginName="foo",

                          func=function(ctx,progressScope)

                                    logger:debug("hello")

                          end

                })

                logger:debug("done")

      end)

       

      This prints out hello and then crashes... Any ideas?  I think this was working fine with LR3 and LR4.0.

       

      Jarno