torque / CGDraw

Adobe Illustrator → Swift/Obj-C CoreGraphics code.
ISC License
1 stars 1 forks source link

PSA : CoffeeScript 2.0 breaks transpilation #2

Open swittk opened 5 years ago

swittk commented 5 years ago

Hi.

I've just reinstalled Illustrator. Forgot to back up my scripts, so I came back here, ran make, and just hoped to carry on. Apparently Illustrator hated the script, showing syntax error at a line, which I noticed had a backtick (`) in it. Turns out, in the past 2 years, CoffeeScript's been updated to version 2.0, and its output now uses modern JavaScript syntax.

I've managed to get a working script again by uninstalling coffeescript and installing coffeescript@1.12.7 instead.

Just thought this info might be useful :)

torque commented 5 years ago

Thanks for the heads up. Looks like there isn't much that can be done about this besides adding a disclaimer to the readme and/or providing a pre-built jsx (honestly, I'm kind of surprised this script still works and/or is useful at all). I wonder if Adobe has any plans to modernize their scripting engine in the future.

I'll do something about this soon.