Hi,
I’m trying to write my first Adobe Photoshop UXP Plugin.
I have a basic vanilla js script I’m happy with in development mode and
I’d like to package it as a .ccx file to share internally for further testing.
I’ve tried packaging and installing locally, however I have received an error:
Coudln’t install plugin, please try again
Error code -4. Help Center
I found info on error codes :
-4 Manifest Parse failure
I did try the recommendation:
Quit the Creative Cloud desktop app and the installed app. Then, relaunch the Creative Cloud desktop app and try installing the extension or plugin again.
This did not work. I do not have an Enterprise account, however based on the packaging-your-plugin page I should be able to package and share a working .ccx file, right ?
Is there a way to validate the manifest json and get detailed info on how to get past error -4 ? I get the same error with the vanilla-js-sample.
What’s the recommended, working method of exporting a .ccx package for internal testing ?
Thank you so much for your time,
George
First topic when searching for “error -4”
Tried packaging from Dev tools and it worked. Checked what’s the difference in manifest and found this (correct is on the left side):
[image]
Not sure how this object got wrapped in array
And why loading plugin from Dev tools doesn’t complain about wrong manifest?
Also… Can’t there be multiple apps that plugin supports (Ps, XD)? If so, then how host should be defined?
Zob
December 13, 2023, 6:03pm
3
This might be helpful as well:
This is an informational post about the various methods available for installing plugins not downloaded from the marketplace. Any of us developing plugins for closed network teams, such as VFX or game production, may find this info helpful. Especially when you need to figure out how to deploy your homemade plugins via scripts and automated processes, while having limited or varying Admin permissions on each system.
CCX == ZIP
Before we get started, I wanted to point out that Plugins are packag…
Thanks you for the input @Karmalakas .
I did try swapping the host from an object inside an array to the object itself and I’ve also reduced minVersion
from 23.0.0 to 22.0.0 (as recommended in Kerri’s post).
Unfortunately nothing changed: Creative Cloud Desktop still shows the same -4
error.
@Zob Thank you for the info Zoey.
I did try every single option.
I got a bit worried when the UnifiedPluginInstallerAgent option failed:
Failed to install, status = -267!
The last option on that list (manually unzipping the .ccx contents into a folder then moving it to Photoshop’s Plugin’s folder) did work!
That is a good enough workaround to start testing on multiple machines.
Jarda
December 13, 2023, 10:57pm
6
Can you post full manifest.json content here? I wonder if my validator would find an issue.
Here is a version with the plugin name, entrypoint id and label retracted:
{
"id": "Test-9ltm8i",
"name": "Hello World Exporter",
"version": "0.0.1",
"main": "index.js",
"host": {
"app": "PS",
"minVersion": "22.0.0"
},
"manifestVersion": 4,
"entrypoints": [
{
"type": "command",
"id": "exportCustomData",
"label": {
"default": "Export Custom Data"
}
}
],
"icons": [
{
"width": 48,
"height": 48,
"path": "icons/plugin-icon.png",
"scale": [
1,
2
],
"theme": [
"darkest",
"dark",
"medium",
"lightest",
"light",
"all"
],
"species": [
"pluginList"
]
}
]
}
Many thanks for offering to validate.
Never saw all
as an option Also in the example species
is shown as generic
with no available options listed, so not sure about this one
Anyway, first thing I’d try removing all
from themes
Jarda
December 14, 2023, 10:03am
9
both options should be valid