{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/318","labels_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/318/comments","events_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/318/events","html_url":"https://github.com/thoughtbot/ember-cli-rails/issues/318","id":119979972,"number":318,"title":"The error message displayed when compiling a template, doesn't contain location / file information","user":{"login":"kozak","id":568464,"avatar_url":"https://avatars.githubusercontent.com/u/568464?v=3","gravatar_id":"","url":"https://api.github.com/users/kozak","html_url":"https://github.com/kozak","followers_url":"https://api.github.com/users/kozak/followers","following_url":"https://api.github.com/users/kozak/following{/other_user}","gists_url":"https://api.github.com/users/kozak/gists{/gist_id}","starred_url":"https://api.github.com/users/kozak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kozak/subscriptions","organizations_url":"https://api.github.com/users/kozak/orgs","repos_url":"https://api.github.com/users/kozak/repos","events_url":"https://api.github.com/users/kozak/events{/privacy}","received_events_url":"https://api.github.com/users/kozak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-02T16:24:01Z","updated_at":"2015-12-04T12:53:34Z","closed_at":null,"body":"I had an error in a handlebars template (there is a href=\"#\" and also a binding to href):\r\n````handlebars\r\n{{#link-to \"staff\" tagName=\"li\" }}\r\n    <a href=\"#\"  {{bind-attr href=\"view.href\"}}>Test </a>\r\n{{/link-to}}\r\n```\r\nThe error I got, didn't include the file information that is normally included in `ember build`\r\nThis is what was displayed: \r\n```\r\nError: Assertion Failed: You cannot set `href` manually and via `{{bind-attr}}` helper on the same element.\r\n  at new Error (native)\r\n  at Error.EmberError (adminr/bower_components/ember/ember-template-compiler.js:4064:21)\r\n  at Object._emberMetalCore.default.assert (adminr/bower_components/ember/ember-template-compiler.js:169:13)\r\n  at assertAttrNameIsUnused (adminr/bower_components/ember/ember-template-compiler.js:11766:38)\r\n  at TransformBindAttrToAttributes.assignAttrs (adminr/bower_components/ember/ember-template-compiler.js:11662:7)\r\n  at adminr/bower_components/ember/ember-template-compiler.js:11646:20\r\n  at Walker.visit (adminr/bower_components/ember/ember-template-compiler.js:18302:7)\r\n  at visitors.Program (adminr/bower_components/ember/ember-template-compiler.js:18312:16)\r\n  at Walker.children (adminr/bower_components/ember/ember-template-compiler.js:18335:7)\r\n  at Walker.visit (adminr/bower_components/ember/ember-template-compiler.js:18303:12)\r\n  at visitors.BlockStatement (adminr/bower_components/ember/ember-template-compiler.js:18323:14)\r\n  at Walker.children (adminr/bower_components/ember/ember-template-compiler.js:18335:7)\r\n  at Walker.visit (adminr/bower_components/ember/ember-template-compiler.js:18303:12)\r\n  at visitors.Program (adminr/bower_components/ember/ember-template-compiler.js:18312:16)\r\n  at Walker.children (adminr/bower_components/ember/ember-template-compiler.js:18335:7)\r\n  at Walker.visit (adminr/bower_components/ember/ember-template-compiler.js:18303:12)\r\n  at visitors.BlockStatement (adminr/bower_components/ember/ember-template-compiler.js:18323:14)\r\n  at Walker.children (adminr/bower_components/ember/ember-template-compiler.js:18335:7)\r\n  at Walker.visit (adminr/bower_components/ember/ember-template-compiler.js:18303:12)\r\n  at visitors.ElementNode (adminr/bower_components/ember/ember-template-compiler.js:18318:16)\r\n  at Walker.children (adminr/bower_components/ember/ember-template-compiler.js:18335:7)\r\n  at Walker.visit (adminr/bower_components/ember/ember-template-compiler.js:18303:12)\r\n  at visitors.ElementNode (adminr/bower_components/ember/ember-template-compiler.js:18318:16)\r\n  at Walker.children (adminr/bower_components/ember/ember-template-compiler.js:18335:7)\r\n  at Walker.visit (adminr/bower_components/ember/ember-template-compiler.js:18303:12)\r\n  at visitors.Program (adminr/bower_components/ember/ember-template-compiler.js:18312:16)\r\n  at Walker.children (adminr/bower_components/ember/ember-template-compiler.js:18335:7)\r\n  at Walker.visit (adminr/bower_components/ember/ember-template-compiler.js:18303:12)\r\n  at visitors.BlockStatement (adminr/bower_components/ember/ember-template-compiler.js:18323:14)\r\n  at Walker.children (adminr/bower_components/ember/ember-template-compiler.js:18335:7)\r\n  at Walker.visit (adminr/bower_components/ember/ember-template-compiler.js:18303:12)\r\n  at visitors.Program (adminr/bower_components/ember/ember-template-compiler.js:18312:16)\r\n  at Walker.children (adminr/bower_components/ember/ember-template-compiler.js:18335:7)\r\n  at Walker.visit (adminr/bower_components/ember/ember-template-compiler.js:18303:12)\r\n  at TransformBindAttrToAttributes_transform [as transform] (adminr/bower_components/ember/ember-template-compiler.js:11639:12)\r\n  at Object.preprocess (adminr/bower_components/ember/ember-template-compiler.js:17693:27)\r\n  at compileSpec (adminr/bower_components/ember/ember-template-compiler.js:12791:37)\r\n  at Object.exports.default [as precompile] (adminr/bower_components/ember/ember-template-compiler.js:12705:12)\r\n  at Object.module.exports.template (adminr/node_modules/ember-cli-htmlbars/utils.js:29:40)\r\n  at TemplateCompiler.processString (adminr/node_modules/ember-cli-htmlbars/index.js:68:36)\r\n  at adminr/node_modules/ember-cli-htmlbars/node_modules/broccoli-persistent-filter/lib/strategies/persistent.js:35:42\r\n  at lib$rsvp$$internal$$tryCatch (adminr/node_modules/ember-cli-htmlbars/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/rsvp.js:493:16)\r\n  at lib$rsvp$$internal$$invokeCallback (adminr/node_modules/ember-cli-htmlbars/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/rsvp.js:505:17)\r\n  at lib$rsvp$$internal$$publish (adminr/node_modules/ember-cli-htmlbars/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/rsvp.js:476:11)\r\n  at lib$rsvp$asap$$flush (adminr/node_modules/ember-cli-htmlbars/node_modules/broccoli-persistent-filter/node_modules/rsvp/dist/rsvp.js:1198:9)\r\n  at process._tickCallback (node.js:355:11)\r\n```\r\n\r\nWhen I run `ember build` I get a huge stack trace (which also includes deprecation information) and the file name:\r\n```\r\nBuild failed.\r\nFile: adminr/templates/application.handlebars\r\nAssertion Failed: You cannot set `href` manually and via `{{bind-attr}}` helper on the same element.\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/comments/161961005","html_url":"https://github.com/thoughtbot/ember-cli-rails/issues/318#issuecomment-161961005","issue_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/318","id":161961005,"user":{"login":"kozak","id":568464,"avatar_url":"https://avatars.githubusercontent.com/u/568464?v=3","gravatar_id":"","url":"https://api.github.com/users/kozak","html_url":"https://github.com/kozak","followers_url":"https://api.github.com/users/kozak/followers","following_url":"https://api.github.com/users/kozak/following{/other_user}","gists_url":"https://api.github.com/users/kozak/gists{/gist_id}","starred_url":"https://api.github.com/users/kozak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kozak/subscriptions","organizations_url":"https://api.github.com/users/kozak/orgs","repos_url":"https://api.github.com/users/kozak/repos","events_url":"https://api.github.com/users/kozak/events{/privacy}","received_events_url":"https://api.github.com/users/kozak/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T12:53:33Z","updated_at":"2015-12-04T12:53:33Z","body":"@seanpdoyle How do you want to approach filtering out deprecations from the error file ? \r\n\r\n* We could ask ember-cli to provide a flag to ember build to exclude deprecations (unless one is already present )\r\n* We could parse the error log by hand, but this would make it very fragile "}}