Open cxgreat2014 opened 7 years ago
I have just tried and it's compiled for me without any error
win7 x64, with a new zerobundle, editor is webstorm, disabled webstorm's file watcher I have no idea about this .....
@cxgreat2014 Try to compile your Time.coffee
via coffee -c
. So we can know which line causes the compile error.
@weakish not work, coffee.wsf(85, 6) file can't open
???I try to not use ZeroNet --debug command and use npm install -g coffee-script
and coffee -c Time.coffee
success...
maybe it's zeronet's coffee script BUG
Yeah, i forgot i have a node based coffeescript compiler (it's faster) (type %s | tools\coffee-node\bin\node.exe tools\coffee-node\bin\coffee --no-header -s -p
)
I will try whats happens with the wsh-based one.
Alternative you can edit the all.js directly or make ZeroBlog multilanguage by adding
"translate": [
"index.html",
"js/all.js"
],
to content.json, then creating languages/zh.json and specify what you want to replace. (see ZeroTalk for example)
@HelloZeroNet Ok, thanks, I'm using a dirt hack with replace DebugMedia.py's command with set command = 'coffee -p ' + file_path_escaped
, it's work :) :+1:
I think use moment.js in ZeroBlog is better than Time.coffee, because moment.js is i18n
Tested with the bundled coffee on Windows, it compiles.
In the screenshot, it seems you are using a coffee
in the root directory of your site.
It is strange.
On my machine, the path is D:\ZeroBundle\ZeroNet\tools\coffee\coffee.cmd
.
I have this problem too. But I installed the node version CoffeeScript. It seems that it's caused by Windows' cscript.exe.
@weakish I just copy D:\ZeroBundle\ZeroNet\tools\coffee\coffee.cmd to my site dir
coffee script not friendly of i18n, like that:
success but if I change it to Chinese...BOOM.
Um....How to slove it? or ZeroBundle should upgrade Coffee Script?