{"action":"created","issue":{"url":"https://api.github.com/repos/kimroen/ember-cli-coffeescript/issues/88","labels_url":"https://api.github.com/repos/kimroen/ember-cli-coffeescript/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/kimroen/ember-cli-coffeescript/issues/88/comments","events_url":"https://api.github.com/repos/kimroen/ember-cli-coffeescript/issues/88/events","html_url":"https://github.com/kimroen/ember-cli-coffeescript/pull/88","id":98941047,"number":88,"title":"Fix for issue with recent versions of ember-cli (Cannot read property 'dummy' of undefined)","user":{"login":"perlun","id":630613,"avatar_url":"https://avatars.githubusercontent.com/u/630613?v=3","gravatar_id":"","url":"https://api.github.com/users/perlun","html_url":"https://github.com/perlun","followers_url":"https://api.github.com/users/perlun/followers","following_url":"https://api.github.com/users/perlun/following{/other_user}","gists_url":"https://api.github.com/users/perlun/gists{/gist_id}","starred_url":"https://api.github.com/users/perlun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perlun/subscriptions","organizations_url":"https://api.github.com/users/perlun/orgs","repos_url":"https://api.github.com/users/perlun/repos","events_url":"https://api.github.com/users/perlun/events{/privacy}","received_events_url":"https://api.github.com/users/perlun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-04T10:47:13Z","updated_at":"2015-08-05T13:24:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kimroen/ember-cli-coffeescript/pulls/88","html_url":"https://github.com/kimroen/ember-cli-coffeescript/pull/88","diff_url":"https://github.com/kimroen/ember-cli-coffeescript/pull/88.diff","patch_url":"https://github.com/kimroen/ember-cli-coffeescript/pull/88.patch"},"body":"With the most recent versions of `ember-cli`, you get exceptions like this when doing `ember destroy route` or `ember generate route`.\r\n\r\n```\r\n$ ember destroy route foo\r\nversion: 1.13.6\r\nCould not find watchman, falling back to NodeWatcher for file system events.\r\nVisit http://www.ember-cli.com/user-guide/#watchman for more info.\r\nuninstalling route\r\n  remove app/routes/foo.coffee\r\n  remove app/templates/foo.hbs\r\nCannot read property 'dummy' of undefined\r\nTypeError: Cannot read property 'dummy' of undefined\r\n  at Class.module.exports.shouldTouchRouter (/Users/plundberg/tmp/ember-cli-test/node_modules/ember-cli/blueprints/route/index.js:66:28)\r\n  at Class.module.exports.shouldTouchRouter (/Users/plundberg/tmp/ember-cli-test/node_modules/ember-cli-coffeescript/blueprints/route/index.js:31:42)\r\n  at Class.module.exports.shouldTouchRouter (/Users/plundberg/tmp/ember-cli-test/node_modules/ember-cli-coffeescript/blueprints/route/index.js:31:42)\r\n  at Class.module.exports.afterUninstall (/Users/plundberg/tmp/ember-cli-test/node_modules/ember-cli-coffeescript/blueprints/route/index.js:52:14)\r\n\r\n  at lib$rsvp$$internal$$tryCatch (/Users/plundberg/tmp/ember-cli-test/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:493:16)\r\n  at lib$rsvp$$internal$$invokeCallback (/Users/plundberg/tmp/ember-cli-test/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:505:17)\r\n  at lib$rsvp$$internal$$publish (/Users/plundberg/tmp/ember-cli-test/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:476:11)\r\n  at lib$rsvp$asap$$flush (/Users/plundberg/tmp/ember-cli-test/node_modules/ember-cli/node_modules/rsvp/dist/rsvp.js:1198:9)\r\n  at process._tickCallback (node.js:355:11)\r\n```\r\n\r\nThe problem was that `shouldTouchRouter` now assumes that it will get the `options` object passed in as a parameter. This commit fixes this. (thanks to @mriska for helping me out to nail this one down)"},"comment":{"url":"https://api.github.com/repos/kimroen/ember-cli-coffeescript/issues/comments/127996029","html_url":"https://github.com/kimroen/ember-cli-coffeescript/pull/88#issuecomment-127996029","issue_url":"https://api.github.com/repos/kimroen/ember-cli-coffeescript/issues/88","id":127996029,"user":{"login":"richmolj","id":55264,"avatar_url":"https://avatars.githubusercontent.com/u/55264?v=3","gravatar_id":"","url":"https://api.github.com/users/richmolj","html_url":"https://github.com/richmolj","followers_url":"https://api.github.com/users/richmolj/followers","following_url":"https://api.github.com/users/richmolj/following{/other_user}","gists_url":"https://api.github.com/users/richmolj/gists{/gist_id}","starred_url":"https://api.github.com/users/richmolj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richmolj/subscriptions","organizations_url":"https://api.github.com/users/richmolj/orgs","repos_url":"https://api.github.com/users/richmolj/repos","events_url":"https://api.github.com/users/richmolj/events{/privacy}","received_events_url":"https://api.github.com/users/richmolj/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T13:24:46Z","updated_at":"2015-08-05T13:24:46Z","body":"Big :+1: was struggling with this yesterday and thought it was my local setup. Good to walk in today and see a well-written explanation and PR!"}}