TurboActivate with Adobe Illustrator PluginAnswered

I have created a plugin for Adobe Illustrator. It is created with HTML/Javascript/ExtendScript (Adobe-CEP).

I am trying to integrate TurboActivate licensing.

at the line 787 of turboactivate.js: 

systaProc.stdin.write(buf)

I am getting an error: write EPIPE. 
I added an exception at this line to get this error: try{systaProc.stdin.write(buf);}catch(e){alert(e)}

Also after creating the "TurboActivate" object:

var ta = new TurboActivate("tr5utp2yzcpiuuijofbciwpapivc3hi");  /////// this number is just toy example 
There is no action inside:

systaProc.stdout.on('data', (data) => { ... })

systaProc.on('close', (code) => { ... })

        systaProc.stdout.on('data', (data) => {

            console.log('stdout').....

        systaProc.on('close', (code) => {

             console.log('close')...

I do not get these messages 'stdout' and 'close'. I am not sure if this is normal behavior here.

Do you maybe know what is going on here and give some advice?

Answer

Using TurboActivate / TurboFloat from inside a JavaScript app requires the use of systa (a helper process that we've provided that communicates between the JS and TA).

You need to make sure the systa executable is in the correct spot and that it has the correct permissions. Covered in the article.

Add debugging breakpoints to make sure it's executed correctly and running correctly.