This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 405
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Uncaught TypeError: Cannot read property 'scrollIntoViewIfNeeded' of undefined #935
Copy link
Copy link
Closed
Description
Edit by @rsese to add repro steps
From @Ben3eeE /cc #935 (comment):
- Open Atom in
atom/atom
- Create a new file called
foo
in the root of the repository - Open
.gitignore
, delete all contents and save the file
Atom 1.26.0-beta1, Windows 10 and macOS 10.12.6.
Atom: 1.18.0 x64
Electron: 1.3.15
OS: Mac OS X 10.12.5
Thrown From: github package 0.3.3
Stack Trace
Uncaught TypeError: Cannot read property 'scrollIntoViewIfNeeded' of undefined
At /Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/node_modules/github/lib/views/staging-view.js:426
TypeError: Cannot read property 'scrollIntoViewIfNeeded' of undefined
at StagingView.writeAfterUpdate (/Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/node_modules/github/lib/views/staging-view.js:426:50)
at updateSync (/Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/node_modules/github/node_modules/etch/lib/component-helpers.js:126:21)
at Object.update (/Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/node_modules/github/node_modules/etch/lib/component-helpers.js:62:11)
at StagingView.selectNext (/Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/node_modules/github/lib/views/staging-view.js:343:33)
at HTMLDivElement.core:move-down (/Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/node_modules/github/lib/views/staging-view.js:166:42)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
at /Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/src/command-registry.js:3:65
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/src/window-event-handler.js:100:42)
at HTMLDocument.<anonymous> (/Users/gsooris/Documents/Installations/Atom.app/Contents/Resources/app/src/window-event-handler.js:3:65)
Commands
-2:13.3.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-when-scrolling)
-1:40.6.0 core:select-all (div.github-StagingView.unstaged-changes-focused)
3x -0:39.2.0 tree-view:toggle-focus (atom-pane.pane)
-0:35.5.0 key-binding-resolver:toggle (atom-pane.pane)
2x -0:35 editor:toggle-line-comments (atom-pane.pane)
-0:32.7.0 key-binding-resolver:toggle (atom-pane.pane)
-0:31.7.0 editor:toggle-line-comments (atom-pane.pane)
2x -0:31.1.0 key-binding-resolver:toggle (atom-pane.pane)
2x -0:29.5.0 editor:toggle-line-comments (atom-pane.pane)
2x -0:23.1.0 tree-view:toggle (atom-pane.pane)
-0:20.8.0 tree-view:open-selected-entry-in-pane-9 (div.tool-panel.tree-view)
5x -0:09.0 github:toggle-git-tab-focus (atom-pane.pane)
-0:05.5.0 core:move-down (div.github-StagingView.unstaged-changes-focused)
-0:05.2.0 core:move-up (div.github-StagingView.unstaged-changes-focused)
Non-Core Packages
angularjs 0.4.0
atom-beautify 0.29.26
atom-typescript 11.0.3
auto-update-packages 1.0.1
autoclose-html 0.23.0
autocomplete-modules 1.6.10
clipboard-history 0.6.6
clipboard-plus 0.5.1
docblockr 0.10.3
emmet 2.4.3
expand-region 0.3.0
file-icons 2.1.7
hyperclick 0.0.40
intellij-idea-keymap 0.2.3
javascript-snippets 1.2.1
js-hyperclick 1.11.0
js-refactor 0.7.5
language-babel 2.65.2
last-cursor-position 0.9.2
multi-cursor 2.1.5
next-line-comment 0.2.1
pigments 0.39.1
react 0.16.2
refactor 0.11.4
Stylus 3.1.1