{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/146","labels_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/146/comments","events_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/146/events","html_url":"https://github.com/thoughtbot/ember-cli-rails/issues/146","id":66907211,"number":146,"title":"javascript errors from rails javascript_include_tag 'application' swallowed by ember","user":{"login":"Leooo","id":2422936,"avatar_url":"https://avatars.githubusercontent.com/u/2422936?v=3","gravatar_id":"","url":"https://api.github.com/users/Leooo","html_url":"https://github.com/Leooo","followers_url":"https://api.github.com/users/Leooo/followers","following_url":"https://api.github.com/users/Leooo/following{/other_user}","gists_url":"https://api.github.com/users/Leooo/gists{/gist_id}","starred_url":"https://api.github.com/users/Leooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leooo/subscriptions","organizations_url":"https://api.github.com/users/Leooo/orgs","repos_url":"https://api.github.com/users/Leooo/repos","events_url":"https://api.github.com/users/Leooo/events{/privacy}","received_events_url":"https://api.github.com/users/Leooo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T14:54:40Z","updated_at":"2015-10-23T19:06:01Z","closed_at":null,"body":"Hello, I'm not sure this is the right way to do it, but to smooth the transition from the asset pipeline to ember-cli I am right now juxtaposing my old js files from rails, with the ones of ember-cli (in a separate root folder frontend/).\r\n\r\nSo in my rails layout application.html.haml I have something like:\r\n\r\n```\r\n    - if use_ember?\r\n      = javascript_include_tag \"ember-init/assets\"\r\n      = include_ember_script_tags :frontend\r\n    - else\r\n      = javascript_include_tag \"notember/notember\"\r\n    = javascript_include_tag \"application\"\r\n```\r\n\r\nMy problem is: normal javascript errors in app/assets/javascript/application.js are not logged to the console anymore. Would you see of any possible trick to make them reappear? Right now I'm already using the following lines to log my Ember errors (desactivating those lines doesn't help to show js errors of the asset pipeline).\r\n\r\n```\r\n//in app.js\r\nEmber.RSVP.on('error', function(error) {\r\n  log(error,\"red\");\r\n  Ember.Logger.assert(false, error);\r\n});\r\n\r\nEmber.onerror = function(error) {\r\n  error_handling(error.message,\"\",\"\",error.stack);\r\n  return true;\r\n};\r\n\r\nwindow.onerror = function (msg, url, line,col,error) {//https://bugsnag.com/blog/js-stacktraces/\r\n  var stack=(typeof error===\"undefined\" ? \"\" : error.stack);\r\n  error_handling(msg,url,line,stack);\r\n  if(!Ember.isNone(console)) {console.trace();}\r\n  return true;\r\n};\r\n\r\nfunction error_handling(msg,url,line,stack) {...}\r\n```\r\n\r\nWhen I say 'errors swallowed', I mean not logged in the console. Maybe I could see them by opting in for 'debug all errors', but unfortunately I have to leave the \"script\" tab disabled in Firebug or my app gets regularly crashed.\r\n\r\nMany thanks\r\n"},"comment":{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/comments/150665278","html_url":"https://github.com/thoughtbot/ember-cli-rails/issues/146#issuecomment-150665278","issue_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/146","id":150665278,"user":{"login":"seanpdoyle","id":2575027,"avatar_url":"https://avatars.githubusercontent.com/u/2575027?v=3","gravatar_id":"","url":"https://api.github.com/users/seanpdoyle","html_url":"https://github.com/seanpdoyle","followers_url":"https://api.github.com/users/seanpdoyle/followers","following_url":"https://api.github.com/users/seanpdoyle/following{/other_user}","gists_url":"https://api.github.com/users/seanpdoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/seanpdoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanpdoyle/subscriptions","organizations_url":"https://api.github.com/users/seanpdoyle/orgs","repos_url":"https://api.github.com/users/seanpdoyle/repos","events_url":"https://api.github.com/users/seanpdoyle/events{/privacy}","received_events_url":"https://api.github.com/users/seanpdoyle/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T19:06:01Z","updated_at":"2015-10-23T19:06:01Z","body":"We're sorry that this issue has sat for so long. \r\n\r\nThe project is now maintained by thoughtbot, and we're declaring an issue bankruptcy of sorts.\r\n\r\nWe're closing this issue. If what you've described is still a problem, please comment on this issue and we'll reopen.\r\n\r\nThanks for your patience."}}