{"action":"created","issue":{"url":"https://api.github.com/repos/hax/js-refactor/issues/7","repository_url":"https://api.github.com/repos/hax/js-refactor","labels_url":"https://api.github.com/repos/hax/js-refactor/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/hax/js-refactor/issues/7/comments","events_url":"https://api.github.com/repos/hax/js-refactor/issues/7/events","html_url":"https://github.com/hax/js-refactor/issues/7","id":105962172,"number":7,"title":"Uncaught TypeError: Cannot read property 'name' of undefined","user":{"login":"mistadikay","id":742056,"avatar_url":"https://avatars.githubusercontent.com/u/742056?v=3","gravatar_id":"","url":"https://api.github.com/users/mistadikay","html_url":"https://github.com/mistadikay","followers_url":"https://api.github.com/users/mistadikay/followers","following_url":"https://api.github.com/users/mistadikay/following{/other_user}","gists_url":"https://api.github.com/users/mistadikay/gists{/gist_id}","starred_url":"https://api.github.com/users/mistadikay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistadikay/subscriptions","organizations_url":"https://api.github.com/users/mistadikay/orgs","repos_url":"https://api.github.com/users/mistadikay/repos","events_url":"https://api.github.com/users/mistadikay/events{/privacy}","received_events_url":"https://api.github.com/users/mistadikay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-11T07:59:43Z","updated_at":"2016-04-22T19:44:04Z","closed_at":null,"body":"[Enter steps to reproduce below:]\r\n\r\n1. ...\r\n2. ...\r\n\r\n**Atom Version**: 1.0.11\r\n**System**: Mac OS X 10.11\r\n**Thrown From**: [js-refactor](https://github.com/hax/js-refactor) package, v0.6.0\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'name' of undefined\r\n\r\n```\r\nAt /Users/lazhcm10348/.atom/packages/js-refactor/vender/esrefactor.js:76\r\n\r\nTypeError: Cannot read property 'name' of undefined\r\n  at _locateDeclaration (/Users/lazhcm10348/.atom/packages/js-refactor/vender/esrefactor.js:76:67)\r\n  at Context._lookupDeclaration (/Users/lazhcm10348/.atom/packages/js-refactor/vender/esrefactor.js:147:22)\r\n  at Context.identify (/Users/lazhcm10348/.atom/packages/js-refactor/vender/esrefactor.js:270:32)\r\n  at Ripper.module.exports.Ripper.find (/Users/lazhcm10348/.atom/packages/js-refactor/lib/ripper.coffee:76:31)\r\n  at Watcher.module.exports.Watcher.createReferences (/Users/lazhcm10348/.atom/packages/refactor/lib/watcher.coffee:137:22)\r\n  at Watcher.module.exports.Watcher.onCursorMovedAfter (/Users/lazhcm10348/.atom/packages/refactor/lib/watcher.coffee:249:6)\r\n  at /Users/lazhcm10348/.atom/packages/refactor/lib/watcher.coffee:1:1\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -2:09.1.0 core:cut (atom-text-editor.editor.is-focused)\r\n     -2:08.7.0 core:select-up (atom-text-editor.editor.is-focused)\r\n     -2:08.0 core:backspace (atom-text-editor.editor.is-focused)\r\n     -2:06.6.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)\r\n     -2:06.6.0 refactor:done (atom-text-editor.editor.is-focused)\r\n     -2:06.6.0 editor:newline (atom-text-editor.editor.is-focused)\r\n     -2:06.4.0 core:paste (atom-text-editor.editor.is-focused)\r\n     -2:05.9.0 core:save (atom-text-editor.editor.is-focused)\r\n  2x -1:08.9.0 pane:show-next-item (atom-text-editor.editor.is-focused)\r\n  4x -1:06.7.0 find-and-replace:find-next (atom-text-editor.editor.is-focused)\r\n     -0:53.2.0 settings-view:open (atom-text-editor.editor.is-focused)\r\n     -0:48.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)\r\n     -0:45.9.0 core:close (button.btn.icon.enablement.icon-playback-play)\r\n     -0:04.1.0 editor:select-to-end-of-word (atom-text-editor.editor.is-focused)\r\n  2x -0:03.8.0 core:select-right (atom-text-editor.editor.is-focused)\r\n  2x -0:03.2.0 core:copy (atom-text-editor.editor.is-focused)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"disabledPackages\": [\r\n      \"welcome\",\r\n      \"metrics\",\r\n      \"language-toml\",\r\n      \"language-ruby-on-rails\",\r\n      \"language-ruby\",\r\n      \"language-python\",\r\n      \"language-perl\",\r\n      \"language-csharp\",\r\n      \"language-c\",\r\n      \"background-tips\",\r\n      \"archive-view\",\r\n      \"project-palette-finder\",\r\n      \"linter-csslint\",\r\n      \"linter-less\",\r\n      \"linter-scss-lint\",\r\n      \"linter-jscs\",\r\n      \"autocomplete-glsl\",\r\n      \"github-issues\",\r\n      \"language-javascript\",\r\n      \"language-clojure\",\r\n      \"language-objective-c\",\r\n      \"language-go\",\r\n      \"language-javascript-jsx\",\r\n      \"open-last-project\",\r\n      \"javascript-refactoring\",\r\n      \"bookmark-panel\",\r\n      \"minimap-bookmarks\",\r\n      \"minimap-find-and-replace\",\r\n      \"minimap-autohide\",\r\n      \"autohide-tree-view\",\r\n      \"autocomplete-atom-api\",\r\n      \"node-resolver\",\r\n      \"tool-bar-main\",\r\n      \"mechanical-keyboard\",\r\n      \"git-control\",\r\n      \"language-javascript-better\",\r\n      \"language-api-blueprint\",\r\n      \"nuclide-hack\",\r\n      \"nuclide-flow\",\r\n      \"nuclide-file-tree\",\r\n      \"nuclide-hg-repository\",\r\n      \"nuclide-language-hack\",\r\n      \"nuclide-remote-projects\",\r\n      \"nuclide-diff-view\",\r\n      \"nuclide-click-to-symbol\",\r\n      \"nuclide-code-format\",\r\n      \"nuclide-file-watcher\",\r\n      \"nuclide-installer\",\r\n      \"nuclide-quick-open\",\r\n      \"nuclide-type-hint\",\r\n      \"travis-ci-status\",\r\n      \"js-refactor\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\natom-beautify, v0.28.12\r\natom-pair, v2.0.10\r\natom-wallaby, v1.0.4\r\nautocomplete-emojis, v2.2.2\r\nautocomplete-paths, v1.0.2\r\ncolor-picker, v2.0.11\r\ncustom-title, v1.0.1\r\neditorconfig, v1.2.0\r\nemmet, v2.3.12\r\nfile-icons, v1.6.9\r\nflex-tool-bar, v0.5.0\r\nfonts, v0.6.0\r\nhighlight-selected, v0.10.1\r\nlanguage-babel, v0.13.6\r\nlanguage-gitignore, v0.2.0\r\nlinter, v1.5.1\r\nlinter-eslint, v3.0.2\r\nminimap, v4.13.3\r\nminimap-git-diff, v4.1.8\r\nminimap-highlight-selected, v4.3.0\r\nminimap-pigments, v0.1.6\r\nminimap-selection, v4.3.0\r\nnode-debugger, v1.1.8\r\npackage-sync, v0.2.0\r\npigments, v0.14.0\r\nproject-manager, v2.5.1\r\nreact, v0.12.8\r\nrefactor, v0.6.0\r\nregex-railroad-diagram, v0.8.4\r\nremote-edit, v1.8.18\r\nsvg-preview, v0.6.1\r\ntool-bar, v0.1.9\r\nwakatime, v4.0.16\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hax/js-refactor/issues/comments/213565421","html_url":"https://github.com/hax/js-refactor/issues/7#issuecomment-213565421","issue_url":"https://api.github.com/repos/hax/js-refactor/issues/7","id":213565421,"user":{"login":"rogovdm","id":1548235,"avatar_url":"https://avatars.githubusercontent.com/u/1548235?v=3","gravatar_id":"","url":"https://api.github.com/users/rogovdm","html_url":"https://github.com/rogovdm","followers_url":"https://api.github.com/users/rogovdm/followers","following_url":"https://api.github.com/users/rogovdm/following{/other_user}","gists_url":"https://api.github.com/users/rogovdm/gists{/gist_id}","starred_url":"https://api.github.com/users/rogovdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogovdm/subscriptions","organizations_url":"https://api.github.com/users/rogovdm/orgs","repos_url":"https://api.github.com/users/rogovdm/repos","events_url":"https://api.github.com/users/rogovdm/events{/privacy}","received_events_url":"https://api.github.com/users/rogovdm/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T19:44:04Z","updated_at":"2016-04-22T19:44:04Z","body":"same + 1"}}