Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disabled the image assets plugin alone? #424

Open
emptykid opened this issue Nov 18, 2016 · 1 comment
Open

How to disabled the image assets plugin alone? #424

emptykid opened this issue Nov 18, 2016 · 1 comment

Comments

@emptykid
Copy link

the image assets is binding to the photoshop host, and enabled by default.
while some times the plugin just crash down because of the assert function used in the code.
eg.

        assert.strictEqual(this.id, rawChange.id, "Document ID mismatch");
        assert.strictEqual(this.version, rawChange.version, "Version mismatch.");

when the plugin crash down, it breaks the generator runtime also, which makes my own generator plugin not working...
here is the exception log


Error trace: AssertionError: Document ID mismatch
    at Document._applyChange (C:\Program Files\Adobe\Adobe Photoshop CC 2017\Required\Plug-Ins\Generator\assets.generate\lib\dom\document.js:740:16)
    at DocumentManager._processNextChange (C:\Program Files\Adobe\Adobe Photoshop CC 2017\Required\Plug-Ins\Generator\assets.generate\lib\documentmanager.js:306:32)
    at DocumentManager.<anonymous> (C:\Program Files\Adobe\Adobe Photoshop CC 2017\Required\Plug-Ins\Generator\assets.generate\lib\documentmanager.js:256:18)
    at _fulfilled (C:\Program Files\Adobe\Adobe Photoshop CC 2017\Required\Generator-builtin\node_modules\q\q.js:787:54)
    at self.promiseDispatch.done (C:\Program Files\Adobe\Adobe Photoshop CC 2017\Required\Generator-builtin\node_modules\q\q.js:816:30)
    at Promise.promise.promiseDispatch (C:\Program Files\Adobe\Adobe Photoshop CC 2017\Required\Generator-builtin\node_modules\q\q.js:749:13)
    at C:\Program Files\Adobe\Adobe Photoshop CC 2017\Required\Generator-builtin\node_modules\q\q.js:557:44
    at flush (C:\Program Files\Adobe\Adobe Photoshop CC 2017\Required\Generator-builtin\node_modules\q\q.js:108:17)
    at nextTickCallbackWith0Args (node.js:415:9)
    at process._tickDomainCallback (node.js:385:13)

Turn of the Enable Generator switch will shut down all generator plugins, that's not what i want.
So, is there some ways to disable the image assests plugin alone,
Or make my own generator plugin in some other process?

thanks a lot.

xiaoqiang from china.

@bialikover
Copy link

bialikover commented Dec 7, 2018

Any update on this?

Is there any way to disable this or turn generator-assets off?

In Adobe cc 2019 it seems like its always listening to "imageChanged" event?

https://github.com/adobe-photoshop/generator-assets/blob/master/lib/documentmanager.js#L102

[info:core 00:09:54.039 generator.js:237:30] Detected Photoshop version: 20.0.0
[info:core 00:09:54.052 generator.js:1915:26] Loading plugin: generator-assets (v2.9.8) from: /Applications/Adobe Photoshop CC 2019/Adobe Photoshop CC 2019.app/Contents/Required/Plug-ins/Generator/assets.generate
[warning:core 00:09:54.139 generator.js:904:26] WARNING the imageChanged event is expensive, please consider NOT listening to it
[info:core 00:09:54.141 generator.js:1931:26] Plugin loaded: generator-assets
assets-generator is causing problems in adobe cc 2019; bundled generator-assets: v2.9.8

Then The following happens at some point when I send JSX to generator to execute:

generator.evaluateJSXString()
[warning:generator-assets 00:11:51.579 document.js:848:38] Unhandled property in raw change: parentID 261
[warning:generator-assets 00:11:52.593 document.js:848:38] Unhandled property in raw change: parentID 195
[warning:generator-assets 00:14:19.947 document.js:848:38] Unhandled property in raw change: parentID 1163
[warning:generator-assets 00:14:20.758 document.js:848:38] Unhandled property in raw change: parentID 195
[warning:core 00:16:16.264 generator.js:133:30] Photoshop error { id: 206, body: 'Unknown JavaScript error' }
[error:app 00:16:16.266 app.js:350:25] Unknown JavaScript error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants