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

Starter project from XD console does not run #242

Open
2 tasks done
3phase opened this issue Oct 26, 2021 · 4 comments
Open
2 tasks done

Starter project from XD console does not run #242

3phase opened this issue Oct 26, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@3phase
Copy link

3phase commented Oct 26, 2021

Submit an issue

Topic

This is an issue regarding:

  • The tutorials contained within this repo.
  • The samples contained within this repo.

Versions

  • XD version(s): 44.1.12
  • UXP Developer Tool version: 1.4.0.3

Description of the issue

The starter project that's generated in Adobe Developer Console does not open in XD version 44.1.12 w/ UXP Developer Tool v1.4.0.3. The prompted error is Failed to Add Plugin to Workspace.

Proposed solution or attempted solutions that failed

My assumption is that the developer console generates a starter project with a manifest file that is compliant with version 3, which apparently is not supported in the specified version.

@pklaschka
Copy link
Contributor

Thanks for reporting this, I'm looking into it.

@pklaschka pklaschka self-assigned this Oct 26, 2021
@pklaschka pklaschka added the bug Something isn't working label Oct 26, 2021
@pklaschka
Copy link
Contributor

I was able to verify this. The error message says that the name entry in the manifest.json is missing.

In the downloaded plugin, it's specified as "".

I'm forwarding this to the relevant teams internally 🙂

Temporary workaround

For now, you can just edit the manifest.json file and enter some arbitrary name and then, you'll be able to add the plugin to the UXP Developer Tool.

Alternatively, I would recommend creating a plugin directly from the UXP Developer Tool using the Create plugin... button (as the template is much more up to date).

Thanks again for reporting this 👍🙂!

@pklaschka
Copy link
Contributor

CC: @kerrishotts

@3phase
Copy link
Author

3phase commented Oct 26, 2021

@pklaschka, thanks for the quick reply man 👍

In case anyone else comes across that same problem before Adobe have it fixed, another thing I had to edit in the manifest.json in order to use the template was the uiEntryPoints object. In v4 it's renamed to entrypoints, there's no commandId property anymore and the types have been slightly modified. Refer to the snippets below.

Manifest v3:

"uiEntryPoints" : [ 
	  {
		"type" : "menu",
		"commandId" : "createRectangle"
	  }
  ]

whereas the same functionality in v4 would be obtained with the following:

"entrypoints": [
    {
      "type": "command",
      "id": "createRectangle"
    }
  ]

@pklaschka pklaschka removed their assignment Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants