Closed zolern closed 9 years ago
Any idea, if when this will reach the actual package? Maintaining this workaround is quite tedious!
It is easy to make pull request with this local workaround, but my concern is that it will be "patch over the patch", i.e. this problem may be needs deeper investigation. Yes, replacing slashes with backslashes solves the problem, but I am curious what and why actually "eats" slashes?
@maxtaco hey man, requesting you to kindly look into it. Thanks :)
I pushed a fix live in 1.8.0-b. I don't have access to a windows machine so let me know if this worked. If not, feel free to open the bug report.
You guys were exactly right about what the problem was. ICS was emitting code of the form:
iced = require 'C:\Documents And Settings\Joe\Foo'
When that is then evaled, the backslashes are dropped.
@maxtaco Please merge pr #141 (you'll still need to recompile the project)
I've pushed v1.8.0-c and confirmed that it works on Windows. There was a fix in the codebase for a similar problem (#84), so let's reuse that code rather (which escapes the '\' characters) rather than rewriting the path with /
chars.
One confirm from me too: now 1.8.0-c works like a charm. Thank you and waiting for 1.8.0-c npm update...
npm is updated for me...
npm install -g iced-coffee-script
/Users/max/opt/bin/iced -> /Users/max/opt/lib/node_modules/iced-coffee-script/bin/coffee
/Users/max/opt/bin/icake -> /Users/max/opt/lib/node_modules/iced-coffee-script/bin/cake
iced-coffee-script@1.8.0-c /Users/max/opt/lib/node_modules/iced-coffee-script
Ops, my bad: I didn't check it, just saw that information about iced-coffee-script version at http://maxtaco.github.io/coffee-script still says "1.8.0-a". Sorry, and thanks again.
Yeah, that's a whole other can of worms. The brochure site is in major need of help.
Need volunteers? I can help with a pleasure: love so much iced-coffee...
Thank you Encho! Sure. The need is a creative one. The example app on there now is broken because Twitter closed their API. And @malgorithms was never a big fan of it. So in the next version of the brochure site, there should be a better (working) app that we can showcase ICS with. Just haven't figured out what the app is....
When icedcoffeescript file is started with iced very strange exception is raised:
somefile.iced:
Started wih iced:
Actually path to iced-coffee-script module is C:\Documents and Settings\Zolern\Application Data\npm\node_modules\iced-coffee-script. It seems that all backslashes are treated as escape symbols.
After some not so deep investigation I found where compiler add full path to iced-coffee-script module:
nodes.coffee, line 2685:
Workaround: just replace backslashes in path to slashes: