kitchen-examples icon indicating copy to clipboard operation
kitchen-examples copied to clipboard

Invalid escape sequence in generated coffeescript

Open timkeith opened this issue 10 years ago • 4 comments

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'.

timkeith avatar Oct 20 '15 15:10 timkeith

@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 avatar Oct 20 '15 17:10 perak

@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?

perak avatar Oct 20 '15 19:10 perak

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

timkeith avatar Oct 24 '15 03:10 timkeith

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.

timkeith avatar Oct 24 '15 04:10 timkeith