withWriteAccessDo problems with the debug plugin

Hi good morning all,

I've just started writing plugins for Lightroom (well, I had a first successful 2 years ago but now I start again with more complicated stuff) and of course I love the Debug plugin (thanks again, John!)- but I'm still struggling with concepts and limitations that may be imposed by the latter.

Concretely, that I will meet the error "attempt to access the property 'myPropertyName' which is not declared in Info.lua", during the execution of my script using the debugging dialog box. It works when I run it just in the Plugin Extras menu as a menu action.

Code:

LrTasks.startAsyncTask (Debug.showErrors (function (context)
local catalog = LrApplication.activeCatalog)
selected local = catalogue: getTargetPhotos()

...

key s peers (values)
Catalog: withWriteAccessDo ("writing data", Debug.showErrors (function (context))
Photo: setPropertyForPlugin (_PLUGIN, "myPropertyName", s)
end))
end

I found something in the Internet which is an indication of a race condition, then maybe it has something to do with a packaging script / running the other? Or y at - it a way to get this race with script debugging, and I'm simply not understand the notion of background tasks/threads yet :-)?

Thanks for your help!

Christof

(I'm on LR 5)

Christof,

We will call the plugin that you debug MyPlugin.  I think the problem is that you are the menu command Debug Script in the debug plugin but Script invoking a MyPlugin returned file.  When you do so, all references to the global variable _PLUGIN are actually referring to the Debug Script plugin, not for MyPlugin.   And so, the returned file cannot access the properties of MyPlugin.

This is a limitation of the SDK that I neglected to document in the Toolbox for debugging.  The solution is simple - copy Debugscript.lua to the MyPlugin folder and add a menu command for MyPlugin that calls Debugscript.   See steps 6 to 9 "Debug export - and publishing Plugins Service" documentation "debugging Toolkit.docx.

Let me know if that solves your problem.

Tags: Photoshop Lightroom

Similar Questions

  • Problem with the AD plugin since the upgrade

    Salvation;

    I upgraded version Orchestrator 4.2.2 version 5.5.1 and now I have problems with my AD plugin.

    The plugin is version 1.0.4.

    When I do a simple search in AD, it returns an error:

    TypeError: Cannot find the search object notfound.

    I also made this:

    System.Debug (AD);  (the AD variable is AD:ActiceDirectory)

    And here's the result:

    [16:59:30.956 2014-05-07] [D] notfound

    I did a backup of plugins + configuration of plugins files.

    And I copied the backup configuration file in the configs for the plugins folder.

    I can see the active AD plugin, I can browse it in Orchestrator.

    Can someone help me with this?

    Kind regards

    Jonathan

    Apartenly you don't need to place the ad as an object.

    You can use

    ActiveDirectory.search("User" , username);
    
  • Problems with the Echo plugin

    Dear all,

    I'm trying to follow this tutorial and create a custom plugin:

    http://developer.BlackBerry.com/HTML5/documentation/beta/about_custom_native_plugins_cordova_blackbe...

    However, even if I add the plugin and run a simple application on the emulator, I am not able to make the cordova.exec function to call native code. I guess that something is broken in the string, the native code to the js.

    Cordova version 3.3 and native SDK is 10.2. Everyone knows the same problem?

    I do not post code is since then the tutorial one...

    Am I missing somehting in the tools / configuration?

    Thank you!

    -marco

    I think that registerEvents may have been broken, because I think that this sample is missing the onEvent method.

    I'll ask the documentation team to review this sample. We have a much more detailed model from and I would rather they referenced here instead - https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10-Cordova/Template

    It seems that they have links with that, but not on this page directly.

    Happy that you guessed it works well!

  • Problem with the JDE Plugin

    Eclipse 3.5.0 and BB Java SDK 5.0.0.14 using... I'm just getting started with BlackBerry... I just built and tested the HelloWorld app... launched in the Simulator end. I try then run it on my camera, to get an error on the wrong version. So, I try and run it again in the Simulator, and now the app just does not appear in the downloads folder. Just nothing. Any ideas what's happening here?

    This happened to me earlier today by using the JDE, so I switched to the Eclipse thinking that would take care of her...

    Never, does anyone else have this problem?

    OK, I fixed it. I just deleted the project BB and recreated and it seems to work again. I think that the problem can me been accidentally right click on the project name and selecting 'BlackBerry\Package project (s).

    What the devil who does anyway?

  • Problem with the debugging token

    So I managed to create my token of debugging and I have everything set up the way I think it should be:

    My blackberry - tablet.xml has the author fields and corresponding authorId the manifest of the token list and by operating with information of VM, it deploys there okay, but when I run with my info real blackberry he mess up (I add the - devMode as requested).

    \Desktop\Playbook\LoLJungler\src>blackberry-airpackager -devMode -package LoLJungler.bar installApp -launchApp LoLJungler-app.xml LoLJungler.swf \Desktop\Playbook\LoLJungler\src\Images -device  -password 
    Warning: Using default icon: C:\Program Files\Adobe\Adobe Flash Builder Burrito\
    sdks\blackberry-tablet-sdk-1.0.1\bin\..\samples\icons\blackberry-tablet-default-
    icon.png
    Info: Package created: LoLJungler.bar
    Sending Install request...
    Info: Action: Install
    Info: Development mode: on
    Info: File size: 2500395
    Info: Installing ...
    Info: Processing 2500395 bytes
    actual_dname::
    actual_id::
    actual_version::
    result::failure 500 BarFileUnsignedError
    Sending Launch request...
    Info: Action: Launch
    Info: Development mode: on
    Info: Launching LoLJungler.testTG9MSnVuZ2xlciAgICAgICA...
    result::Invalid
    Info: done
    

    While <> with description like path or password I removed for the sake of anonymity.

    Does anyone else has thoughts as to why it's having such an error?

    As I expected, it was something stupid.  There was an error in my xml file (authorID against authorId), and I needed to include it in the path to the command line.

  • Problem with the Eclipse Plugin

    Hi all! I get just enough of it, so before I break my computer, I'll ask here hehe.

    I downloaded the last functional eclipse IDE, as well as the Plugin to begin programming. I followed the instructions (help-> update-> local-> restart eclipse) but I can't just set up my blackberry workspace. The option is not available, just the thing "import signing keys.

    What's not here?

    I downloaded "eJDE1.0.0.67_With_CP4.5.0.16.zip" which includes the "features" and "plugin" folders. And the file "eclipse-java-ganymede-SR2 - Win32.zip" Eclipse.org

    HEY! I found a solution here

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=26408&jump=true

    hope this would help other ppl

  • Problems with the creation of chips of debugging SDK WebWorks of Blackberry10 2.0.0.71

    I had a problem with the creation of debugging tokens using the blackberry-debugtokenrequest command. It gives me an error saying that "java" is not a batch file or a program. The blackberry-debugtokenrequest batch file has the following text:

    @java - Djava.awt.headless = true-Xmx512M - cp ' % ~dp0\... \lib\EccpressoJDK15ECC.jar;%~dp0\... \lib\EccpressoAll.jar;%~dp0\... \lib\TrustpointAll.jar;%~dp0\... \lib\TrustpointJDK15.jar;%~dp0\... \lib\TrustpointProviders.jar;%~dp0\... \lib\BarPackager.jar;%~dp0\... \lib\BarSigner.jar;%~dp0\... \lib\KeyTool.jar;%~dp0\... \lib\DebugTokenRequest.jar ' net.rim.device.codesigning.debugtoken.DebugTokenRequest % *.

    I think that the culprit is the symbol @ before java, does anyone else have this problem? Is there a solution?

    What happens if at the command prompt just type "java-version" of your command prompt?

    If it does not, you must do one of two things.

    1. install Java v1.6 (32-bit only)

    2 Java is not in your PATH. (http://www.java.com/en/download/help/path.xml)

  • Dependency problem with the new Blackberry Plugin for Eclipse

    I just encountered a problem with the new version of the JDE Eclipse Plugin. I set up my application project so that it uses two other projects such as libraries. Both of these projects are on the way to build Java in the settings of the application project, and the manufacturer Eclipse compiles without errors.

    But when I try to run on the Simulator, the application loader throws an Exception stating that it could not find one of the classes listed in library projects. Since it is the importation of first class in the main class, I guess that it was unable to find the entire library.

    I tried to have the application project to import the project two library, but nothing alx files has changed.

    In the old version of the Plugin, there is a property of the project "Blackberry project dependencies" or something like that, which should be set for library and rapc.exe projects and the simulator would be their. That went away, and I was told during Devcon now suffice to add libraries to the classpath. Apparently, this is not so for me.

    Can you give me an indication of what goes wrong?

    The problem seems to be that I imported my projects since the previous version of Eclipse plug-ins, Blackberry. I have now created a new workspace and new projects, completely maintaining the source files, and it works.

  • Problem with the plugin ActiveDirectory

    I have a problem with the plugin active directory that it does not show the OUs under a spesific UO (I guess that's because there are too many objects in this spesific UO and for some reason any, limit the amount of objects, it can show).

    To work around the problem I wanted to use the Active Directory script class and use the search method, but I can just find a way to create this object to use the reproductives I guess that I do not understand something in the API.

    Read this it looks like it could be typo...

    Please share your script, or search for mistyped as ActiveDirectory.Search ().

    For example - to throw the object system: TypeError: cannot find the default value for the object

    This code online

    System.Iog ("Test");

    because this isn't a lowercase L, it is a shift that i and this method does'nt exist on the object of the system...

    Other objects throw correcting errors as this method does not exist in the wrapper dyn...

    Depends on the implementation and management inside of it I guess than errors

    Kind regards

    Andreas

  • Problem with the plugin Photoshop and reflux

    I get the following message if poster every time I start photoshop:

    There is a problem with the generator. Quit Photoshop and try again. If the problem persists, remove third-party plug-ins or try to reinstall Photoshop.

    I am running PS 14.1.1

    I also noticed that the reflow option is missing from the drop-down list generaotr. I also tried just download/install the plugin installed by reflow.

    Any ideas?

    Thanks for the help.

    Hello

    There is a simple trick to achieve this.

    1. uninstall all your photoshop CC & edge reflow CC (make sure that you delete all the files in C: drive and temp files).

    2 after step 1 install photoshop CC & edge reflow CC normally.

    3. now download the Edge connection Plugin of

    4. after launch the plugin, and now, you will find a folder of reflow in your (Mac applications folder) and your (Program Files under Windows).

    5 open the folder "reflow/plug-ins/alternator /" and copy "reflow.generate" file.

    6. now open Photoshop CC and go into plug-ins/alternator /.

    7 paste the copied here folder and restart your Pc or Mac.

    8. now, everything should be good.

    It isn't only one answer is how I solved the same problem on my mac.

  • Problem with the plugin Update Manager

    I'm having a problem with the update on my VC Server Manager (2.5 build 104215).  Update Manager is not downloaded updates.  In VC when I go to Plugins it shows that Updae Manager is installed and enabled.  If I remove the check mark for Enabled & then turn it back on, I get a message - "the server could not interpret the customer's request" - but the checkbox reappears.  I also have this message when I run VC on the server, but not from my PC.

    If I right click on the download VMware Update Manager update scheduled task and select Properties, I get a message - "the plugin for this task has not been saved.   All VMware services are started.  The Update Manager

    Update Manager is built 1.0.0.63972 and the VI client on the server is 104215

    Thanks for any help.

    He is now in place and running as planned?

  • Problem with the compilation by using the new compiler (Compilation failed during execution: compilation-abc)

    Hello

    Since the release of the fast compiler, I experienced problems with the compilation of the version release with it.

    As it was still in beta, and since it was still possible to use the legacy compiler, I chose to use the legacy compiler each time (especially since it was more stable).

    With this 64-bit iOS requirement came into play on February 1, the legacy compiler is no longer available because it has been completely removed from AIR 16 (and all future versions).

    Now, I can no longer compile release versions (debug versions are works well) because I have the following error every time:

    Error occurred during the application of packaging:

    Stack dump:

    0 program arguments: C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\lib\aot/bin/compile-abc / compile - abc.exe - mtriple = armv7-apple-ios - filetype = obj - sdk C:\Program Files\Adobe\Adobe Flash Builder 4.7 (Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\lib\aot/lib/avmglue.abc 64-fields C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\lib\aot/lib/air-fields.)) arm-air.txt-O3-ane-symbol = MmgCmApiExtInitializer - ane-symbol = MmgCmApiExtFinalizer - ane-symbol = MmgRbApiExtInitializer - ane-symbol = MmgRbApiExtFinalizer - ane-symbol = MmgStoreKitApiExtInitializer-ane symbol = MmgStoreKitApiExtFinalizer-ane symbol = MmgGoViralApiExtInitializer-ane symbol = MmgGoViralApiExtFinalizer-ane symbol = MmgGaApiExtInitializer - ane-symbol = MmgGaApiExtFinalizer - ane-symbol = MmgGAIDFAAccessApiExtInitializer - ane-symbol = MmgGAIDFAAccessApiExtFinalizer - ane-symbol = AFExtensionInitializer - ane-symbol = PushwooshExtInitializer - ane-symbol = PushwooshExtFinalizer elease-temp\AOT\AOTBuildOutput4982262150932522887.tmp\ABCFilesList.txt-abc-file-list=C:\BingoIslandWeb\Client-branch-1.06.05\BingoIslanMobile\BingoIsland\bin-r

    Compilation failed during execution: compilation-abc


    I tried to pin-point the source of the problem leaving specific things in the code, while removing all the rest,

    But so far, all I could find is that he has a problem with the classes that extend EventDispatcher.

    Anyone encounter this problem and knows how to work around it?

    Thank you!



    I had this problem also with other things. It was difficult to solve. Remove all const and var conversion in the Document class solve my problems

  • I have a problem with the content of spam. Somewhere in the Fox appeared script that's choking me audio spam. Every 30 minutes he's playing an audio clip that is malicious.

    Hello.
    I have a problem with the content of spam. Somewhere in the Fox appeared script that's choking me audio spam. Every 30 minutes he's playing an audio clip that is malicious. I can't find the settings as it eliminated. Now, I don't have any plug-ins and Add-ons strange that were not initially in the Fox, but the problem is there.
    I use the Fox years. The problem, he had 1.5 months after Fox cleaning. If the problem can't win, I'll be forced to give up the browser, and I wouldn't.

    Could test you mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    Does not work if Firefox: Hold down the SHIFT key when you start Firefox.

    If Firefox is running: You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    and OK reboot.

    Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).

    Any improvement?

    If the problem persists in Mode without failure, could reinstall you Firefox in this way:

    Clean reinstall it

    We use this name, but it isn't about deleting your settings, this is to ensure that the program, files are clean (not incompatible, corrupt or exotic code files). As described below, this process does not disrupt your existing settings. Don't uninstall NOT Firefox, that does not need.

    (1) download a fresh Installer for Firefox 38.0.5 of https://www.mozilla.org/firefox/all/ in an ideal location. (Scroll down your preferred language).

    (2) close Firefox (if applicable).

    (3) to rename the program folder, either:

    (Windows 64-bit folder names)

    C:\Program Files (x86)\Mozilla Firefox
    

    TO

    C:\Program Files (x86)\OldFirefox
    

    (Windows 32-bit folder names)

    C:\Program Files\Mozilla Firefox
    

    TO

    C:\Program Files\OldFirefox
    

    (4) run the installer you downloaded in the #1. It should automatically connect to your existing settings.

    Any improvement?

    Note: Some plugins can only exist in this OldFirefox file. If it is missing something essential, present in these files:

    • \OldFirefox\Plugins
    • \OldFirefox\browser\plugins
  • (Problem with the arrows) Adobe Reader is not working properly

    I have problem with the Adobe Reader plug-in. When I have a tab open with the pdf file, my arrows do not work in other tabs in firefox, only in this tab where it is the open pdf file. Also, I noticed that when you try to use the arrows in the other cards, they are working on a pdf file.

    I am tempted to uninstall and reinstall Adobe Reader, but it does not work. Help, please.

    I solved the problem reinstalling Firefox, because when I turned off Macromedia my pdf file still worked, but the arrows didn't always work. I think it was a problem with the plugin from adobe.

  • Problem with the search function

    I use firefox 10 and I have a problem with the search feature. If the word that I will try to find begins with the capital letter I can't find with control function if I write the word only with small letters. a the opposite. For example, if the word is 'Letter' I can't find this word if I type 'letter' in the search bar

    Is the option 'Option match case' in the verified search bar? If so, uncheck it.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

Maybe you are looking for

  • Why iCloud back up has become so difficult?

    My iPhone never gets last time estimate for backup and my iPad gets there eventually, but now says that it will be more than 12 hours to complete! The previous backups for both devices took only minutes (except the first). iCloud is provided by Apple

  • Can not install the new update

    Hi, I use windows 8.1. My Skype cannot be used at present. Pop message 'the old Skype 7.8 version can not be delete' while I install the new version by the message on Skype application. I got through all the files and make sure you all relate file ha

  • Satellite L630 - 16K - Chaning the size of the partition

    Hey guys, I hope someone will be able to help me with this. Recently bought a TOSHIBA Satellite L630 - 16K, running Windows 7, works very well. But I really don't like how the default partitions have been put in place. I basically want to extend the

  • Moving from my old iMac 27 "to a new

    What is the best method to move all my setting, applications and files from my old iMac 27 "to my new iMac 27"? Thank you Amnon

  • How to install the hard drive in CQ62-402AU

    Hi everyone, it seems that my new close CQ62-402AU has a SSD but there is enough room for a HDD SATA so wonder if there is some kind of cable and connector I could buy because a slot for cable and like I said plenty of room for a built-in SATA. Thank