vellerefond / project-ring

Project management for the Atom editor.
GNU General Public License v2.0
15 stars 8 forks source link

Uncaught TypeError: treeView.mainModule.treeView.find is not a function #56

Open SJDSNL opened 7 years ago

SJDSNL commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.16.0 x64 Electron: 1.3.13 OS: Mac OS X 10.12.4 Thrown From: project-ring package 0.40.0

Stack Trace

Uncaught TypeError: treeView.mainModule.treeView.find is not a function

At /Users/Tijn/.atom/packages/project-ring/lib/project-ring.coffee:97

TypeError: treeView.mainModule.treeView.find is not a function
  at Object.initializePackage (/packages/project-ring/lib/project-ring.coffee:97:34)
  at /packages/project-ring/lib/project-ring.coffee:31:19

Commands

Non-Core Packages

busy-signal 1.3.0 
intentions 1.1.2 
linter 2.1.2 
linter-js-standard 3.9.0 
linter-php 1.3.2 
linter-phpmd 1.5.3 
linter-tidy 2.3.1 
linter-ui-default 1.2.2 
project-ring 0.40.0 
Remote-FTP 0.10.7 
jbjhjm commented 7 years ago

This is the reason: https://github.com/atom/tree-view/pull/1032 jQuery is being removed from tree-view ... what a mess. I began to fix some issues in that file but there are appearing more and more things to fix... I don't have enough experience with coffee syntax to repair each of them in reasonable time.

Lines 89 / 97

`treeView.mainModule.treeView.find('.tree-view').on 'click keydown', (event) =>

becomes

treeView.mainModule.treeView.element.addEventListener 'click keydown', (event) => `

etc

abraxxa commented 7 years ago

When will this issue be fixed? Does someone know a similar but better maintained module?

jbjhjm commented 7 years ago

@abraxxa I switched to project-plus which works similar and pretty well for me.