This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Anyone know how to update the compiler bits for coffeescript? I'm getting an error. For example...
zing = (num for num in [10..0] by 2) alert(zing); gets me this:
(function() { var num, zing; zing = (function() { var _results, _step; _results = []; for (num = 10, _step = 2; num >= 0; num += _step) { _results.push(num); } return _results; })(); alert(zing); }).call(this); This is wrong. The _step variable is incremented when it should be decremented. In this case it will never end. The compiler online is also wrong, but doesn't compile the same, so there is clearly a difference somewhere. Anyone know if we can update the bits for the web workbench?
|
|
|
We don't currently have a way to plug in your own build of the CoffeeScript compiler (we build it into the extension to minimise deployment hassles) -- we'll investigate whether we can provide a convenient way to do this. |
|
|
FWIW, the correct way to do this in coffeescript is as follows:
zing = (num for num in [10..0] by -2)
Kinda makes sense. Regardless, it would be nice to be able to update the compiler though it's no biggee. |
|
|
Is there a way to turn off the generation so that we could use updated coffeescript compilers ? The is the only extension that offers syntax highlighting, which was one of the major wins for me. What version of coffeeScript does Web Workbench currently support ? |
|