oriolmirosa / open-files

Atom package to show the open files in the tree-view panel, mirroring the functionality in Sublime Text
https://atom.io/packages/open-files
MIT License
15 stars 10 forks source link

Uncaught TypeError: Cannot read property 'item' of undefined #20

Open nsatija opened 7 years ago

nsatija commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.18.0 x64 Electron: 1.3.15 OS: Mac OS X 10.11.6 Thrown From: open-files package 0.8.2

Stack Trace

Uncaught TypeError: Cannot read property 'item' of undefined

At /Users/Nick/.atom/packages/open-files/lib/open-files-pane-view.js:86

TypeError: Cannot read property 'item' of undefined
    at /packages/open-files/lib/open-files-pane-view.js:86:53)
    at HTMLUListElement.dispatch (/packages/open-files/node_modules/jquery/dist/jquery.js:5206:27)
    at HTMLUListElement.elemData.handle (/packages/open-files/node_modules/jquery/dist/jquery.js:5014:28)

Commands

     -2:39.6.0 snippets:expand (input.hidden-input)
     -2:39.6.0 editor:indent (input.hidden-input)
     -2:39.4.0 snippets:next-tab-stop (input.hidden-input)
     -2:39.4.0 snippets:expand (input.hidden-input)
     -2:39.4.0 editor:indent (input.hidden-input)
     -2:38.2.0 core:backspace (input.hidden-input)
     -2:33.4.0 core:save (input.hidden-input)
     -1:36.3.0 editor:newline (input.hidden-input)
  2x -1:34.6.0 intentions:highlight (input.hidden-input)
     -1:05.5.0 core:backspace (input.hidden-input)
     -1:04.9.0 core:move-up (input.hidden-input)
 13x -1:04.4.0 editor:move-to-end-of-screen-line (input.hidden-input)
 15x -0:59.9.0 core:delete (input.hidden-input)
     -0:39.9.0 core:copy (input.hidden-input)
  2x -0:39.2.0 core:paste (input.hidden-input)
     -0:30.5.0 core:save (input.hidden-input)

Non-Core Packages

atom-beautify 0.30.3 
atom-html-preview 0.1.22 
atom-jade 0.3.0 
atom-minify 0.8.0 
autoclose-html 0.23.0 
busy-signal 1.4.3 
color-picker 2.2.5 
intentions 1.1.2 
jade 1.1.0 
jade-beautify 0.1.5 
language-pug 0.0.21 
lebab 0.10.0 
lebab-convert 0.9.0 
linter 2.2.0 
linter-ui-default 1.6.2 
open-files 0.8.2 
open-html-in-browser 0.1.0 
opened-files 0.3.6 
pigments 0.39.1 
platformio-ide-terminal 2.5.1 
rainbow-tabs 2.2.1 
tabs-closer 0.16.0 
tidy-tabs 0.4.0 
tree-view-open-files 0.3.0 
uglify 1.3.1 
oriolmirosa commented 6 years ago

Thanks for reporting this, @nsatija. I will need some more info in order to debug this:

Thanks!

tobiastom commented 6 years ago

I think I have the same error. I did click on the X to close the Settings "document".

mfour-merickson commented 6 years ago

+1 on this error.

For me, it happens when I click the X, or simply select a file. What is disheartening, this same issue occurred from the package you forked so you might have converted by CoffeeScript to ES6

oriolmirosa commented 6 years ago

Thanks for your comments and sorry for the delay in responding to some of you. I'm in the middle of several big life transitions and things are crazy. As I mentioned earlier in this thread, this is frustrating for me because I don't experience the problem, so I don't know how to debug it. It would be really helpful if someone could give me more details:

Thanks!

JossueValar commented 4 years ago
  1. Yes it does.
  2. The X in the open files panel.
  3. It was just installed and was working fine until I closed Atom, then it happened. My guess is that my atom didn't install right in some way because I was having problems even with tree-view but I don't know.
  4. I first closed the tabs after atom booted, then I couldn't see the side panel so I toggled it and there were the tabs I just closed, when I proceed to close them the bug appears.

I don't know if this was solved already since it's such an old post, but if you could help me that'd be awesome! :D

Edit: I don't know if it should appear in the menu bas where it says packages but it doesn't haha. If I look for it in the settings, disable it and then enable it it starts working again.

jdpipe commented 4 years ago

I got this error when clicking a file in the 'open-files' list, then typing 'ctrl-w' to close the file. Actually I closed one file, then I closed another one by the same message. There is a noticeable delay after each 'ctrl-w' before the open-files list's animation removes the file and closes the gap. The gap is long enough to make one wonder if one had clicked successfully or not...