adobe-photoshop / generator-assets

Generator Plug-in for Adobe Photoshop CC that helps users export image assets
MIT License
496 stars 86 forks source link

Unhandled error in _handleOpenDocumentsChanged #457

Open GDreyV opened 5 years ago

GDreyV commented 5 years ago

When this._generator.getDocumentSettingsForPlugin(id, PLUGIN_ID) is called it does not handle error which might occur if e.g. document Is already closed. In that case generator process restarts and leads to the error in all plugins as they all are working in the same sandbox. And I guess the same for .setDocumentSettingsForPlugin(settings, PLUGIN_ID).done().

RealBuddy commented 5 years ago

I confirm, if you open some document and close it too fast, using any other plugin or even script – there gonna be an unhandled exception with "Unknown JavaScript error".