Skip to main content
olverart
Inspiring
July 27, 2020
Answered

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

  • July 27, 2020
  • 2 replies
  • 1294 views
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?

This topic has been closed for replies.
Correct answer olverart

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!!

2 replies

olverart
olverartAuthorCorrect answer
Inspiring
August 6, 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!!

Charu Rajput
Community Expert
Community Expert
July 29, 2020

Hi,

What CEP version are you using?

Best regards
olverart
olverartAuthor
Inspiring
August 6, 2020

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!!