• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

CEP panels / Enabling nodejs and mixed context makes Photoshop panel to not work

Participant ,
Jul 27, 2020 Jul 27, 2020

Copy link to clipboard

Copied

Hello,

 

I'm building a small local server on as Photoshop panel because I need to use Nodejs for some tasks. The problem is that when I try to enable node js and mixed context on the Parameters under CEFCommandLine in the manifest.xml, doesn't seems to work.

 

When I open the extension that is loading the server, somehow it makes flicker the loader in my cursor like if something was loding but doesn't loads node-js, here's my manifest <extension> tag:
 

 

<Extension Id="cnation.server">
			<DispatchInfo>
				<Resources>
					<MainPath>./localServer.html</MainPath>
					<CEFCommandLine>
					<Parameter>--enable-nodejs</Parameter>
					<Parameter>--mixed-context</Parameter>
					</CEFCommandLine>
				</Resources>
				<Lifecycle>
					<AutoVisible>false</AutoVisible>
				</Lifecycle>
				<UI>
					<Type>Custom</Type>
					<Geometry>
							<Size>
								<Height>100</Height>
								<Width>100</Width>
							</Size>
						</Geometry>
					<Icons />
				</UI>
			</DispatchInfo>
		</Extension>

 

If I remove this two lines: the panel works well but I cannot use Nodejs on the browser to call a Nodejs function:

 

<Parameter>--enable-nodejs</Parameter>
					<Parameter>--mixed-context</Parameter>

 


Someone knows what is going on?

TOPICS
Actions and scripting

Views

890

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Aug 06, 2020 Aug 06, 2020

I just found the bug on this. Seems that if you have your extension folder name with some characters like "apostrophe" glitches because some parsing in the backend I think. But i removed the apostrophe and now it works perfectly, I had this issue for what, one month? It was driving me crazy!!

Votes

Translate

Translate
Adobe
Community Expert ,
Jul 29, 2020 Jul 29, 2020

Copy link to clipboard

Copied

Hi,

What CEP version are you using?

Best regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 06, 2020 Aug 06, 2020

Copy link to clipboard

Copied

Hello Charu! I just found the bug on this. Seems that if you have your extension folder name with some characters like "apostrophe" glitches because some parsing in the backend I think. But i removed the apostrophe and now it works perfectly, I had this issue for what, one month? It was driving me crazy!!

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 06, 2020 Aug 06, 2020

Copy link to clipboard

Copied

LATEST

I just found the bug on this. Seems that if you have your extension folder name with some characters like "apostrophe" glitches because some parsing in the backend I think. But i removed the apostrophe and now it works perfectly, I had this issue for what, one month? It was driving me crazy!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines