-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot read property 'nextSibling' of undefined #18
Comments
Hi, @solly0702, thanks for reporting the bug. I can't really reproduce this, but would you mind checking if the bug is still there with the latest version of the package (0.7.2)? If it is still present, could you tell me what files you have open at the time, and which you have closed recently? I'm particularly interested in non-traditional files, such as 'settings', 'deprecation cop', etc. Thanks! |
This issue also appeared for me on 0.6.1. I then updated to 0.7.2 and it now seems to be gone, but I am not 100% sure, since it seems to be intermittent. |
Thanks for the feedback, @gtozzi. I will leave the bug open for a couple of weeks longer. Please let me know if the problem re-appears. |
The problem is back. It worked for a few days and then it worked the whole morning. Then now, after no apparent reason, the problem appeared. The file/line is now: .atom/packages/open-files/lib/open-files-pane-view.js:184 Trace: TypeError: Cannot read property 'nextSibling' of undefined |
Thanks for letting me know about this, @gtozzi. Since I can't reproduce, could you let me know what files you have open at the time, and which you have closed recently? I'm particularly interested in non-traditional files, such as 'settings', 'deprecation cop', etc. Thanks! |
Thanks for your reply! Maybe it has something to do with the amount of files opened instead? When I open two windows, with a different project per window, here is what I get: The 2nd-opened project has a blank file bar. |
It definitely has something to do with multiple panels opened. Today I've split the window by mistake by dragging a file tab and there the bug came back. I've then restarted atom and tried hard to reproduce it without success :(. |
Thanks again for your feedback, @gtozzi. I just published version 0.8.0. I've rewritten large parts of the package and I think it should be much more stable now. Since I can't reproduce the bug I'm not sure the recent changes take care of this, but I hope they do. Give it a spin and let me know if the problem persists. I'll leave the bug open for the moment. |
Thanks for the quick update but unfortunately 0.8.0 doesn't seem to fix this for me. I too have been using the split panes and this is the only time I seem to experience the issue. Haven't been using Atom for very long, though, so don't know what useful information (if there is any) I can share. |
Thanks for the report. After upgrading to 0.8.0, have you reloaded the window (View -> Developer -> Reload Window), or closed and restarted Atom? I am not able to reproduce the problem. I've been opening and closing files, editing them, having multiple panels, etc. and it works fine for me, so it's hard to know how to fix this if I can't identify the culprit. The most useful information would be to know what you were doing exactly when the problem occurred and what kinds of files and panels were open or just closed/modified. I'm sorry about the issue and I hope I can pin it down soon, but since I don't experience it myself I'm a bit at a loss. |
Thank you again for your replies and for the update. Unfortunately, it just happened again. This time I had no files opened. I switched from project A to project B, than I closed all tabs. When I opened the first file, I got the error. New trace: Once the error behavior is triggered, it lasts until next atom restart. |
Hmm... How did you switch between projects? |
ctrl+alt+p (I am not sure if the hotkey is atom builtin or part of the project-plus package) |
Ok, I now have the problem as well, including the empty 'open files' panels when opening new projects. As far as I can see, this is related to the |
I just published 0.8.1. This release takes care of the problems when the project is switched into the same window, so there shouldn't be any more duplication of 'open files' panels. I also took care of the only instance in which I could reproduce the |
Thank you again for keeping improving this plugin. You don't have to be sorry: you are doing a very good job for free :D Unfortunately, the problem is still there after upgrade & restart. I only had a single project open this time. I used the "close all tabs" function, then when I re-opened first file... bang
|
Ok, I've found how to reproduce it:
|
Thanks so much for this. I can reproduce now as well. I'm flying back after getting married last weekend but I'll try to work on this later this week. |
Ha ha! Thanks so much! |
I hope this issue is resolved now. As the release notes for 0.8.2 say, I think the problem was that the removal of elements was done based on their indices, and when several were removed at the same time (as when you closed all tabs simultaneously) the delays and animations generated mismatches that created problems when new files were opened. I now assigned a unique id to each element, so hopefully the removal will be accurate and the problems will not appear again. I do not see the error anymore with 0.8.2, but do let me know if it creeps up again and I'll investigate more. Once again, thanks for all the feedback! |
Thank you very much! Maybe it is a bit early to say, but I confirm it seems to be solved for me too (at least on the previously reported reproducible case). |
[Enter steps to reproduce:]
Atom: 1.17.2 x64
Electron: 1.3.15
OS: Mac OS X 10.12.5
Thrown From: open-files package 0.7.1
Stack Trace
Uncaught TypeError: Cannot read property 'nextSibling' of undefined
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: