You can clone with
There seems to be an issue when outputting a source map to a specified folder using --output - someone please tell me if I'm missing something!
If you compile with --maps/-m, everything seems to be golden and you get a shiny source map:
coffee --compile --map coffeescript/index.coffee
However, if you use --output/-o, you get the same result, despite the fact that the source is now in a different place relative to the map. The source map does end up in the specified output folder though.
This is what should be generated instead:
Dupe of #2778.
I don't believe this is a dupe. The issue in #2778 was (in part) about an incorrect file reference to the map file. This is about an incorrect file reference within the map file.
I'm not sure if @phenomnomnominal's expected result is correct, or if there should be a relative directory in sourceRoot, but neither is currently happening.
No matter where my .coffee sources are relative to the maps, the map only has a bare file name in sources.
+1 please reopen. I don't believe this is a dupe either. Getting the same result described above by @codelahoma on Mac with Rails using the 1.6.2 version of the compiler.
I just verified that what is missing is the name of the source file in the "sources" array. Added it manually and worked on the browser side. (with the exception of the line number being off by 2, but that's another issue.)
What's the status of this issue?