perak / kitchen-examples

Meteor Kitchen examples
164 stars 115 forks source link

Invalid escape sequence in generated coffeescript #31

Open timkeith opened 9 years ago

timkeith commented 9 years ago

I'm running meteor-kitchen -c -j ... and it works great except for one minor problem:

lib/object_utils.coffee:62:26: invalid escape sequence \u9
lib/object_utils.coffee:68:18: invalid escape sequence \ud\n

Those should be '\u0009' and '\u000d\n' or just '\t' and '\r\n'.

perak commented 9 years ago

@timkeith interesting... I'll check if I can fix that as soon as I reach my computer (perhaps in original .js I've put some suspicious chars)

perak commented 9 years ago

@timkeith I cannot reproduce your issue

But I got another problem: client.js cannot be properly converted to coffee due to empty if statement in getArray() function - fixed now and will be available in next version (v0.9.55).

What OS, meteor-kitchen --version and js2coffee --version are you using?

timkeith commented 9 years ago

OS: Ubuntu 14.04 meteor-kitchen --version: 0.9.53 js2coffee --version: 2.1.0

timkeith commented 9 years ago

When I run js2coffee on object_utils.js it generates the bad string literals. So it seems to be a bug in js2coffee rather than in meteor-kitchen.