hswolff / tree-view-extended

Atom.io package. Extend your tree-view. Add a list of open files, and a list of git modified files.
https://atom.io/packages/tree-view-extended
MIT License
8 stars 1 forks source link

Uncaught TypeError: Cannot read property 'activeItem' of null #4

Closed ndelangen closed 7 years ago

ndelangen commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.14.4 x64 Electron: 1.3.13 OS: Mac OS X 10.12.3 Thrown From: tree-view-extended package 1.0.0

Stack Trace

Uncaught TypeError: Cannot read property 'activeItem' of null

At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:1045

TypeError: Cannot read property 'activeItem' of null
    at ExtendedTreeView.render (/packages/tree-view-extended/lib/extended-tree-view.js:62:17)
    at Function.module.exports.Emitter.simpleDispatch (/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
    at Emitter.module.exports.Emitter.emit (/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
    at TextBuffer.module.exports.TextBuffer.emitModifiedStatusChanged (/app.asar/node_modules/text-buffer/lib/text-buffer.js:1383:27)
    at TextBuffer.module.exports.TextBuffer.saveAs (/app.asar/node_modules/text-buffer/lib/text-buffer.js:1081:12)
    at TextBuffer.module.exports.TextBuffer.save (/app.asar/node_modules/text-buffer/lib/text-buffer.js:1049:19)
    at TextEditor.module.exports.TextEditor.save (/app.asar/src/text-editor.js:893:26)
    at Pane.module.exports.Pane.saveItem (/app.asar/src/pane.js:753:18)
    at Pane.saveItem (/app.asar/src/pane.js:3:59)
    at Pane.module.exports.Pane.saveActiveItem (/app.asar/src/pane.js:736:19)
    at Workspace.module.exports.Workspace.saveActivePaneItem (/app.asar/src/workspace.js:693:35)
    at /app.asar/src/register-default-commands.js:225:32)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
    at /app.asar/src/command-registry.js:3:59
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:599:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:390:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/app.asar/src/window-event-handler.js:106:36)
    at /app.asar/src/window-event-handler.js:3:59)

Commands

     -1:16.8.0 editor:select-to-first-character-of-line (input.hidden-input)
  2x -1:16.4.0 core:backspace (input.hidden-input)
  3x -1:15.3.0 core:move-down (input.hidden-input)
  2x -1:10.4.0 core:move-up (input.hidden-input)
  6x -1:09.8.0 core:move-down (input.hidden-input)
     -1:03.5.0 editor:move-to-end-of-screen-line (input.hidden-input)
     -1:03.1.0 editor:newline (input.hidden-input)
  2x -1:00.1.0 core:backspace (input.hidden-input)
     -0:56.6.0 autocomplete-plus:confirm (input.hidden-input)
     -0:56.6.0 snippets:expand (atom-text-editor.editor.is-focused.autocomplete-active)
     -0:53.9.0 core:copy (input.hidden-input)
  3x -0:52.1.0 core:paste (input.hidden-input)
  2x -0:37.8.0 core:move-left (input.hidden-input)
     -0:34.1.0 autocomplete-plus:confirm (input.hidden-input)
     -0:10.3.0 core:move-down (input.hidden-input)
     -0:01.8.0 core:save (input.hidden-input)

Non-Core Packages

atom-typescript 10.1.15 
atom-wallaby 1.0.16 
auto-reveal-active-file 0.3.1 
autocomplete-html-entities 0.1.0 
autocomplete-json 5.3.0 
autocomplete-modules 1.6.7 
blame 0.10.2 
escape-utils 0.5.3 
git-time-machine 1.5.6 
highlight-selected 0.12.0 
html-entities 0.4.0 
language-babel 2.56.0 
language-ignore 1.5.2 
language-markdown 0.19.1 
language-postcss 1.3.0 
language-svg 0.9.2 
language-vue 0.21.2 
linter 1.11.23 
linter-csslint 1.3.4 
linter-eslint 8.1.2 
linter-jsonlint 1.3.0 
markdown-scroll-sync 2.1.2 
merge-conflicts 1.4.4 
min-ui-colorful 0.10.0 
minimap 4.26.8 
minimap-highlight-selected 4.5.0 
monokai 0.22.0 
one-dark-monokai 0.4.0 
prettier-eslint 1.2.9 
react 0.16.2 
todo-show 1.11.0 
tree-view-extended 1.0.0 
hswolff commented 7 years ago

Well this is a fun one...

Have you been able to reproduce this consistently?

I could patch this with a simple workaround but I'd prefer to find the root cause.

ndelangen commented 7 years ago

I've disabled the plugin for now. The error was consistent, yes. Anything I can try to resolve this myself?

hswolff commented 7 years ago

Are there steps I can do to reproduce it locally? Is it a folder with git? Any information is welcome!

ndelangen commented 7 years ago

I enabled the addon again after updating everything, it seems to work again. Must have been some combination of atom version, other addons, and this addon that were conflicting, or maybe it was something in one specific git repo. I don't know.

Anyhow, seems to be resolved for me. So unless others are experiencing this problem or you want to know exactly what went wrong, I'll just close this issue. thanks for the support!

derek-groupmail commented 7 years ago

I'm also getting this issue (with the latest tree-view-extended v2.0.0), it seems like almost everytime I edit something!

e.g. Uncaught TypeError: Cannot read property 'activeItem' of null

Stack Trace...

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.19.4 x64 Electron: 1.6.9 OS: Mac OS X 10.12.6 Thrown From: tree-view-extended package 2.0.0

Stack Trace

Uncaught TypeError: Cannot read property 'activeItem' of null

At /Users/derekmcdermott/.atom/packages/tree-view-extended/lib/extended-tree-view.js:65

TypeError: Cannot read property 'activeItem' of null
    at ExtendedTreeView.render (/packages/tree-view-extended/lib/extended-tree-view.js:65:17)
    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at TextBuffer.module.exports.TextBuffer.emitModifiedStatusChanged (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:1592:33)
    at TextBuffer.module.exports.TextBuffer.emitDidStopChangingEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:1584:25)
    at later (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/helpers.js:21:13)

Commands

  4x -9:52.5.0 core:delete (input.hidden-input)
     -9:50.4.0 editor:select-to-end-of-line (input.hidden-input)
  2x -9:50.3.0 core:delete (input.hidden-input)
  2x -9:42.3.0 editor:newline (input.hidden-input)
     -9:38.3.0 core:save (input.hidden-input)
 12x -9:28.8.0 core:delete (input.hidden-input)
  2x -9:25.7.0 core:move-down (input.hidden-input)
     -8:20.7.0 find-and-replace:show (input.hidden-input)
     -8:16.4.0 core:confirm (input.hidden-input)
     -8:15.5.0 editor:consolidate-selections (input.hidden-input)
     -8:15.5.0 core:cancel (input.hidden-input)
     -8:04.1.0 find-and-replace:find-next (input.hidden-input)
     -8:02.5.0 core:move-left (input.hidden-input)
  7x -8:02.1.0 core:move-right (input.hidden-input)
     -8:00.7.0 core:delete (input.hidden-input)
  2x -5:36.6.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)

Non-Core Packages

apex-syntax 0.2.0 
apex-ui 1.0.1 
atom-beautify 0.30.5 
atom-like-brackets-editor 1.2.0 
atom-lupa 0.7.41 
atom-ternjs 0.18.3 
busy-signal 1.4.3 
double-tag 0.9.0 
expand-region 0.3.1 
export-html 3.1.0 
expose 0.14.0 
file-icons 2.1.11 
fold-functions 0.5.0 
grammar-tab-colors 0.2.8 
imdone-atom 2.2.6 
intentions 1.1.5 
keybinding-cheatsheet 0.1.1 
linter 2.2.0 
linter-eslint 8.2.1 
linter-ui-default 1.6.8 
minimap 4.29.6 
monokai 0.24.0 
pigments 0.40.2 
project-manager 3.3.5 
react 0.16.2 
regex-railroad-diagram 0.19.3 
seti-syntax 1.1.3 
seti-ui 1.9.0 
sort-lines 0.15.0 
string-case 0.1.0 
symbol-gen 1.3.1 
symbols-tree-view 0.14.0 
sync-settings 0.8.3 
too-much-sunlight-syntax 0.1.0 
tree-view-extended 2.0.0 
tree-view-filter 0.5.3 
zentabs 0.8.8 

It's pretty much unusable like this as the dialogue pops up so frequently, I'll have to disable the plug-in.

You hinted at a quick workaround - is there anything I can set to fix this even temporarily?

I'm happy to provide more details if you need them.