att / rcloud

Collaborative data analysis and visualization
http://rcloud.social
MIT License
431 stars 142 forks source link

Error: this.$tree_ is undefined #2577

Closed gordonwoodhull closed 6 years ago

gordonwoodhull commented 6 years ago

Sometimes when I return to an RCloud tab and try to click on a notebook, I get this error. Seems like the notebook tree is now dead and I have to reload.

Error: this.$tree_ is undefined
TypeError: this.$tree_ is undefined
select_node/<@http://127.0.0.1:8080/js/rcloud_bundle.js:15839:17
From previous event:
select_node@http://127.0.0.1:8080/js/rcloud_bundle.js:15838:13
tree_click@http://127.0.0.1:8080/js/rcloud_bundle.js:15812:25
dispatch@http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:4408:15
add/elemData.handle@http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:4095:6
trigger@http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:4324:5
trigger/<@http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:4875:4
each@http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:375:14
each@http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:139:10
trigger@http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:4874:10
JqTreeWidget.prototype._triggerEvent@http://127.0.0.1:8080/lib/js/tree.jquery.js:1684:7
JqTreeWidget.prototype._click@http://127.0.0.1:8080/lib/js/tree.jquery.js:1543:19
proxy@http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:513:11
dispatch@http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:4408:15
add/elemData.handle@http://127.0.0.1:8080/lib/js/jquery-2.1.1.js:4095:6
gordonwoodhull commented 6 years ago

This is a tough one to reproduce - I have not seen it for a while. But if you do run into it, @JABedford, please see if you can track it down and fix it.

jameesy commented 6 years ago

PR submitted @gordonwoodhull - This error was occurring when trying to open the same notebook but from a different directory.

For example: "Notebook 1" is selected in "Notebooks I Starred". Selecting "Notebook 1" in "All Notebooks" would throw the error.