hanyazou / tree-view-finder

Mac OS finder like file browser for ATOM editor.
MIT License
10 stars 7 forks source link

Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. #1

Open coolhome opened 9 years ago

coolhome commented 9 years ago

Any action on the tree view. Nothing is rendered yet.

Atom Version: 0.208.0 System: Mac OS X 10.10.3 Thrown From: tree-view-finder package, v0.2.1

Stack Trace

Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.

At /Users/Preston/.atom/packages/tree-view-finder/lib/finder-tool.coffee:195

Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at Error (native)
    at tree-view-finder-tool.FinderTool.attach (/Users/Preston/.atom/packages/tree-view-finder/lib/finder-tool.coffee:345:28)
    at Object.module.exports.TreeViewFinder._show (/Users/Preston/.atom/packages/tree-view-finder/lib/tree-view-finder.coffee:187:23)
    at Object.module.exports.TreeViewFinder.attach (/Users/Preston/.atom/packages/tree-view-finder/lib/tree-view-finder.coffee:166:19)
    at HTMLOListElement.<anonymous> (/Users/Preston/.atom/packages/tree-view-finder/lib/tree-view-finder.coffee:132:26)
    at HTMLBodyElement.jQuery.event.dispatch (/Applications/Atom 2.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLBodyElement.elemData.handle (/Applications/Atom 2.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)
    at Object.jQuery.event.trigger (/Applications/Atom 2.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4350:12)
    at Object.jQuery.event.simulate (/Applications/Atom 2.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4652:17)
    at HTMLDocument.handler (/Applications/Atom 2.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4780:18)

Commands

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store"
    ],
    "disabledPackages": [
      "linter",
      "linter-phpcs",
      "unregistered",
      "data-atom",
      "minimap",
      "project-manager",
      "toolbar-basic",
      "autocomplete-paths"
    ],
    "themes": [
      "seti-ui",
      "no-caffeine-syntax"
    ],
    "destroyEmptyPanes": false,
    "audioBeep": false
  }
}

Installed Packages

# User
Remote-FTP, v0.7.1
atom-alignment, v0.12.1
atom-handlebars, v0.5.0
autocomplete-php, v0.3.6
docblockr, v0.7.2
highlight-selected, v0.9.3
no-caffeine-syntax, v0.15.2
seti-ui, v0.7.1
tabs-to-spaces, v0.11.0
tree-view-finder, v0.2.1
wakatime, v4.0.9

# Dev
No dev packages
hanyazou commented 9 years ago

Could you try to disable some visual/UI mod packages if you install them ? I couldn't reproduce the error.

coolhome commented 9 years ago

The plugin conflicts w/ Remote-FTP (https://github.com/mgrenier/remote-ftp). When remote-ftp adds a side pane before the tree-free-finder plugin it throws this error. If I close the remote-ftp pane then show tree view it renders currently.

EDIT: I've never done atom development but I think the problem is the query selectors being to vague. I see other packages that modify tree view use the util requirePackage('tree-view') then the selectors from the module itself.