Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does it somehow require running the code to generate the maps? I'm asking because when I add the "-m" to my coffee compile line I get:

    TypeError: In test.coffee, Cannot call method 'indexOf' of undefined
The line in question calling _.indexOf() from the underscore library... It compiles just fine without the -m option.


No.

    coffee --compile --map file.coffee
Should produce a "file.js" and a "file.map".


Hmmm:

    $ coffee --version
    CoffeeScript version 1.6.1
    $ coffee --compile static/test.coffee
    $ coffee --compile --map static/test.coffee
    TypeError: In static/test.coffee, Cannot call method 'indexOf' of undefined
        at Object.count (~/.npm/lib/node_modules/coffee-script/lib/coffee-script/helpers.js:33:29)
        at Object.compile (~/.npm/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:72:30)
        at ~/.npm/lib/node_modules/coffee-script/lib/coffee-script/command.js:171:33
        at ~/.npm/lib/node_modules/coffee-script/lib/coffee-script/command.js:141:18
        at [object Object].<anonymous> (fs.js:123:5)
        at [object Object].emit (events.js:64:17)
        at Object.oncomplete (fs.js:1181:12)
(Paths were full path names, I replaced my $HOME with ~ in the output for clarity and some security through obscurity)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: