{"action":"created","issue":{"url":"https://api.github.com/repos/atom/find-and-replace/issues/909","repository_url":"https://api.github.com/repos/atom/find-and-replace","labels_url":"https://api.github.com/repos/atom/find-and-replace/issues/909/labels{/name}","comments_url":"https://api.github.com/repos/atom/find-and-replace/issues/909/comments","events_url":"https://api.github.com/repos/atom/find-and-replace/issues/909/events","html_url":"https://github.com/atom/find-and-replace/issues/909","id":233505121,"number":909,"title":"Uncaught TypeError: Cannot read property 'leadingContextLines' of undefined","user":{"login":"axelson","id":9973,"avatar_url":"https://avatars2.githubusercontent.com/u/9973?v=3","gravatar_id":"","url":"https://api.github.com/users/axelson","html_url":"https://github.com/axelson","followers_url":"https://api.github.com/users/axelson/followers","following_url":"https://api.github.com/users/axelson/following{/other_user}","gists_url":"https://api.github.com/users/axelson/gists{/gist_id}","starred_url":"https://api.github.com/users/axelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelson/subscriptions","organizations_url":"https://api.github.com/users/axelson/orgs","repos_url":"https://api.github.com/users/axelson/repos","events_url":"https://api.github.com/users/axelson/events{/privacy}","received_events_url":"https://api.github.com/users/axelson/received_events","type":"User","site_admin":false},"labels":[{"id":51792532,"url":"https://api.github.com/repos/atom/find-and-replace/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":216260911,"url":"https://api.github.com/repos/atom/find-and-replace/labels/uncaught-exception","name":"uncaught-exception","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-06-05T06:30:00Z","updated_at":"2017-07-07T11:20:31Z","closed_at":null,"body":"[Enter steps to reproduce:]\r\n\r\n1. ...\r\n2. ...\r\n\r\n**Atom**: 1.17.2 x64\r\n**Electron**: 1.3.15\r\n**OS**: Mac OS X 10.12.5\r\n**Thrown From**: [find-and-replace](https://github.com/atom/find-and-replace) package 0.208.3\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'leadingContextLines' of undefined\r\n\r\n```\r\nAt /Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/project/results-view.js:279\r\n\r\nTypeError: Cannot read property 'leadingContextLines' of undefined\r\n    at ResultsView.positionOfSelectedResult (/Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/project/results-view.js:279:1)\r\n    at ResultsView.scrollToSelectedMatch (/Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/project/results-view.js:458:1)\r\n    at ResultsView.moveDown (/Applications/Atom.app/Contents/Resources/app/node_modules/find-and-replace/lib/project/results-view.js:353:1)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:1)\r\n    at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:1\r\n    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:1)\r\n    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:1)\r\n    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:100:1)\r\n    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:3:1)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -0:16.3.0 vim-mode-plus:activate-insert-mode (input.hidden-input)\r\n     -0:15.3.0 vim-mode-plus:activate-normal-mode (input.hidden-input)\r\n     -0:15.2.0 vim-mode-plus:move-to-beginning-of-line (input.hidden-input)\r\n     -0:14.9.0 core:save (input.hidden-input)\r\n     -0:14.6.0 core:close (input.hidden-input)\r\n  3x -0:13.7.0 core:move-down (div.results-view.focusable-panel)\r\n     -0:10.7.0 core:confirm (div.results-view.focusable-panel)\r\n     -0:10.1.0 vim-mode-plus:reset-normal-mode (input.hidden-input)\r\n     -0:09.7.0 vim-mode-plus:move-to-previous-word (input.hidden-input)\r\n     -0:09.5.0 vim-mode-plus:activate-insert-mode (input.hidden-input)\r\n     -0:08.5.0 vim-mode-plus:activate-normal-mode (input.hidden-input)\r\n     -0:08.3.0 vim-mode-plus:move-to-beginning-of-line (input.hidden-input)\r\n     -0:08.0 core:save (input.hidden-input)\r\n     -0:06.5.0 core:close (input.hidden-input)\r\n     -0:03.6.0 core:move-down (div.results-view.focusable-panel)\r\n     -0:02.3.0 core:close (div.results-view.focusable-panel)\r\n```\r\n\r\n### Non-Core Packages\r\n\r\n```\r\natom-autocomplete-php 0.22.2 \r\natom-beautify 0.29.26 \r\natom-jade 0.3.0 \r\natom-ternjs 0.18.3 \r\nbusy-signal 1.4.1 \r\ncolor-picker 2.2.5 \r\ncursor-history 0.11.1 \r\neditorconfig 2.2.2 \r\ngoto 1.8.3 \r\nhighlight-selected 0.13.1 \r\nintentions 1.1.2 \r\nlanguage-elixir 0.18.0 \r\nlinter 2.1.4 \r\nlinter-elixirc 1.6.0 \r\nlinter-eslint 8.2.1 \r\nlinter-ui-default 1.6.0 \r\npigments 0.39.1 \r\nreact 0.16.2 \r\nreact-snippets 0.7.4 \r\nredux-snippets 0.2.2 \r\ntab-control 0.6.10 \r\ntabs-to-spaces 1.0.3 \r\nvim-mode-plus 0.93.0 \r\nwordpress-api 1.2.2 \r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom/find-and-replace/issues/comments/313655439","html_url":"https://github.com/atom/find-and-replace/issues/909#issuecomment-313655439","issue_url":"https://api.github.com/repos/atom/find-and-replace/issues/909","id":313655439,"user":{"login":"Ben3eeE","id":1058982,"avatar_url":"https://avatars0.githubusercontent.com/u/1058982?v=3","gravatar_id":"","url":"https://api.github.com/users/Ben3eeE","html_url":"https://github.com/Ben3eeE","followers_url":"https://api.github.com/users/Ben3eeE/followers","following_url":"https://api.github.com/users/Ben3eeE/following{/other_user}","gists_url":"https://api.github.com/users/Ben3eeE/gists{/gist_id}","starred_url":"https://api.github.com/users/Ben3eeE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ben3eeE/subscriptions","organizations_url":"https://api.github.com/users/Ben3eeE/orgs","repos_url":"https://api.github.com/users/Ben3eeE/repos","events_url":"https://api.github.com/users/Ben3eeE/events{/privacy}","received_events_url":"https://api.github.com/users/Ben3eeE/received_events","type":"User","site_admin":false},"created_at":"2017-07-07T11:20:31Z","updated_at":"2017-07-07T11:20:31Z","body":"Thanks for the steps to reproduce @axelson :bowing_man: I can reproduce both this and https://github.com/atom/find-and-replace/issues/883 using your steps.\r\n\r\nFor step 11, to get the deleted `long.txt` to disappear from the project find results I had to make changes to `long.txt` after opening it from the project find results in step 9.\r\n\r\nTo reproduce https://github.com/atom/find-and-replace/issues/883 I had a single file named `long.txt` and did the same steps, because I missed the step to create `short.txt`\r\n\r\nI was outside of safe mode when reproducing and never tested in safe mode.\r\n\r\n/cc: @maxbrunsfeld "}}
{"actor":{"display_login":"Ben3eeE"}}