jashkenas/coffee-script — Issue #2077: When compilation fails with multiple joined files, the wrong filename is printed
Author: obeattie
Created: 2012-01-29 20:22:38+00:00
State: open

Bit of a weird one, but it seems that when compiling multiple files with `--join`, if compilation fails with something like a `SyntaxError`, the wrong filename will be indicated.

For instance, I've just seen the following error when passing in around 20 files:-

SyntaxError: In /mnt/hgfs/lv/lv_core/lv/static/js/init.coffee, unmatched ] on line 1789

The file referenced, `init.coffee` is only around 10 lines long, so obviously the error isn't in the file. It's simply the first one in the list that I've passed.