{"action":"created","issue":{"url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/168","labels_url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/168/comments","events_url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/168/events","html_url":"https://github.com/Sanjo/meteor-jasmine/issues/168","id":59393041,"number":168,"title":"jasmine appears to break coffeescript line number reporting","user":{"login":"nilnullzip","id":872634,"avatar_url":"https://avatars.githubusercontent.com/u/872634?v=3","gravatar_id":"","url":"https://api.github.com/users/nilnullzip","html_url":"https://github.com/nilnullzip","followers_url":"https://api.github.com/users/nilnullzip/followers","following_url":"https://api.github.com/users/nilnullzip/following{/other_user}","gists_url":"https://api.github.com/users/nilnullzip/gists{/gist_id}","starred_url":"https://api.github.com/users/nilnullzip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilnullzip/subscriptions","organizations_url":"https://api.github.com/users/nilnullzip/orgs","repos_url":"https://api.github.com/users/nilnullzip/repos","events_url":"https://api.github.com/users/nilnullzip/events{/privacy}","received_events_url":"https://api.github.com/users/nilnullzip/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Sanjo/meteor-jasmine/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-03-01T11:46:38Z","updated_at":"2015-05-29T22:51:36Z","closed_at":null,"body":"Normally when coffeescript reports an error, it indicates the line number in the coffeescript file. See below.\r\n\r\n<pre>\r\nW20150301-03:27:42.657(-8)? (STDERR) ReferenceError: xxx is not defined\r\nW20150301-03:27:42.657(-8)? (STDERR)     at ./bar.coffee:1:1\r\nW20150301-03:27:42.657(-8)? (STDERR)     at ./bar.coffee:1:1\r\nW20150301-03:27:42.657(-8)? (STDERR)     at /Users/juan/Temp/programming/meteor/foo/.meteor/local/build/programs/server/boot.js:205:10\r\nW20150301-03:27:42.657(-8)? (STDERR)     at Array.forEach (native)\r\nW20150301-03:27:42.657(-8)? (STDERR)     at Function._.each._.forEach (/Users/juan/.meteor/packages/meteor-tool/.1.0.41.rsvhne++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)\r\nW20150301-03:27:42.657(-8)? (STDERR)     at /Users/juan/Temp/programming/meteor/foo/.meteor/local/build/programs/server/boot.js:116:5\r\n</pre>\r\n\r\nHowever, with jasmine installed, the line number given is from the compiled javascript target file. See below.\r\n\r\n<pre>\r\nW20150228-20:01:19.174(-8)? (STDERR) ReferenceError: xxx is not defined\r\nW20150228-20:01:19.174(-8)? (STDERR)   at /Users/juan/Temp/programming/meteor/foo/.meteor/local/build/programs/server/app/bar.coffee.js:6:1\r\nW20150228-20:01:19.174(-8)? (STDERR)   at /Users/juan/Temp/programming/meteor/foo/.meteor/local/build/programs/server/app/bar.coffee.js:8:3\r\nW20150228-20:01:19.175(-8)? (STDERR)   at /Users/juan/Temp/programming/meteor/foo/.meteor/local/build/programs/server/boot.js:205:10\r\nW20150228-20:01:19.175(-8)? (STDERR)   at Array.forEach (native)\r\nW20150228-20:01:19.175(-8)? (STDERR)   at Function._.each._.forEach (/Users/juan/.meteor/packages/meteor-tool/.1.0.41.rsvhne++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)\r\nW20150228-20:01:19.175(-8)? (STDERR)   at /Users/juan/Temp/programming/meteor/foo/.meteor/local/build/programs/server/boot.js:116:5\r\n</pre>\r\n\r\nI think this may also affect breakpoints.\r\n\r\nI tried installing mike:mocha, and no problem. I also tried installing sanjo:karma, and still no problem. So it seems related to sanjo: jasmine.\r\n\r\nI suspect the problem is related to the .map files that map between coffeescript and target JS files. Perhaps that linkage is being disturbed?\r\n\r\nAny ideas what could be causing this strange problem and how to work around?"},"comment":{"url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/comments/106953890","html_url":"https://github.com/Sanjo/meteor-jasmine/issues/168#issuecomment-106953890","issue_url":"https://api.github.com/repos/Sanjo/meteor-jasmine/issues/168","id":106953890,"user":{"login":"nilnullzip","id":872634,"avatar_url":"https://avatars.githubusercontent.com/u/872634?v=3","gravatar_id":"","url":"https://api.github.com/users/nilnullzip","html_url":"https://github.com/nilnullzip","followers_url":"https://api.github.com/users/nilnullzip/followers","following_url":"https://api.github.com/users/nilnullzip/following{/other_user}","gists_url":"https://api.github.com/users/nilnullzip/gists{/gist_id}","starred_url":"https://api.github.com/users/nilnullzip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilnullzip/subscriptions","organizations_url":"https://api.github.com/users/nilnullzip/orgs","repos_url":"https://api.github.com/users/nilnullzip/repos","events_url":"https://api.github.com/users/nilnullzip/events{/privacy}","received_events_url":"https://api.github.com/users/nilnullzip/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T22:51:36Z","updated_at":"2015-05-29T22:51:36Z","body":"Hey Mike, Agreed. Here's what I found:\r\n\r\n> https://github.com/meteor-velocity/meteor-internals/issues/2\r\n\r\nNote that I was able to improve the console line numbers by commenting out some code. But that broke debugging. Do you have any insight into what meteor-internals is doing with source maps?"}}