File > Export produces error when Reload Plug-in On Each Export is enabled
- August 11, 2023
- 0 replies
- 78 views
When the option Reload Plug-in On Each Export is enabled for a non-export plugin and you do File > Export, LR tries to reload the plugin and sometimes produces the error message, "An error occurred while reading the schema for the plug-in <plugin>. The plug-in will be disabled.":

See the attached "anytag.txt" for the resulting diagnostic log saved from the Plug-in Manager.
A user of one of my plugins accidentally enabled that option, and we spent several hours tracking down the cause. (I don't write export plugins and it never occurred to me that this might be the cause.) Of course users "shouldn't" set that option, but of course, LR should correctly handle it when they do.
LR should do one of these correct behaviors:
1. Disable (grey out) the setting Reload Plug-in On Each Export for non-export plugins. This is the best as-designed behavior, since the option is only intended for export plugins.
2. Ignore the setting for non-export plugins when Export is invoked. This is probably the most expedient patch, easiest to implement.
3. Correctly reload the plugin when Export is invoked, even if it is a non-export plugin.
* * *
To reproduce:
1. Install one of my plugins: Any Comment, Any Source, Any Tag.
2. In File > Plug-in Manager, select the plugin and check the option Reload Plug-in On Each Export.
3. Do File > Export.
