vellerefond / project-ring

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

Uncaught TypeError: Cannot read property 'appendChild' of null #30

Closed Arsca closed 9 years ago

Arsca commented 9 years ago
  1. Install this package
  2. Restart atom
  3. From command panel -> Project Ring: Add project
  4. Introduce the name of the project + enter

Atom Version: 1.0.0 System: Mac OS X 10.10.3 Thrown From: project-ring package, v0.31.0

Stack Trace

Uncaught TypeError: Cannot read property 'appendChild' of null

At /Users/ari/.atom/packages/project-ring/lib/project-ring-view.coffee:20

TypeError: Cannot read property 'appendChild' of null
  at ProjectRingView.module.exports.ProjectRingView.attach (/Users/ari/.atom/packages/project-ring/lib/project-ring-view.coffee:20:35)
  at Object.module.exports.toggle (/Users/ari/.atom/packages/project-ring/lib/project-ring.coffee:533:21)
  at atom-workspace.<anonymous> (/Users/ari/.atom/packages/project-ring/lib/project-ring.coffee:83:66)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:159:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
  at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:180:20)

Commands

     -0:10.1.0 command-palette:toggle (atom-pane.pane.active)
  2x -0:07.0 core:move-down (input.hidden-input)
     -0:06.2.0 core:move-up (input.hidden-input)
     -0:06.0 core:confirm (input.hidden-input)
     -0:06.0 project-ring:toggle (atom-pane.pane.active)

Config

{
  "core": {
    "themes": [
      "atom-solarized-dark-ui",
      "solarized-dark-bold-syntax"
    ],
    "projectHome": "/Users/ari/Development/SIPECO/gitlab/sipeco",
    "disabledPackages": [
      "tualo-git-context",
      "terminal-status",
      "git-difftool",
      "atomatigit",
      "linter-jscs",
      "atom-minjs",
      "tree-view-open-files",
      "fonts"
    ],
    "ignoredNames": [
      "node_modules",
      "assets/js/vendor",
      "assets/js/TimelineJS",
      "assets/js/oracle"
    ]
  },
  "project-ring": {
    "makeTheCurrentProjectTheDefaultAtStartUp": true
  }
}

Installed Packages

# User
atom-handlebars, v0.5.0
atom-jasmine, v0.6.0
atom-runner, v2.4.1
atom-solarized-dark-ui, v0.25.0
autoclose-html, v0.18.0
autocomplete-modules, v1.0.0
autocomplete-polymer, v0.2.3
autohide-tree-view, v0.20.2
block-cursor, v0.13.1
block-travel, v1.0.2
color-picker, v2.0.7
docblockr, v0.7.2
ember-cli-helper, v0.7.2
ember-snippets, v1.2.1
emmet, v2.3.10
file-icons, v1.5.8
git-log, v0.4.1
git-tab-status, v1.9.2
javascript-snippets, v1.0.0
johns-work-arounds, v0.18.0
js-patterns-atom-snippets, v0.2.1
jsformat, v0.9.0
json-colorer, v0.3.0
language-ejs, v0.2.0
language-ember-htmlbars, v0.3.0
language-ember-script, v0.2.0
language-gitignore, v0.2.0
last-cursor-position, v0.9.0
linter, v1.0.9
linter-csslint, v0.0.14
linter-eslint, v1.0.8
linter-htmlhint, v0.0.16
live-archive, v0.1.15
local-history, v3.2.3
markdown-format, v2.5.1
minimap, v4.10.0
minimap-git-diff, v4.1.3
node-debugger, v1.1.0
pretty-json, v0.4.1
project-ring, v0.31.0
project-view, v0.1.2
react, v0.12.0
remote-edit, v1.8.2
remote-sync, v3.1.2
solarized-dark-bold-syntax, v0.2.0
ssh-config, v0.10.1
symbol-gen, vundefined
symbols-tree-view, v0.9.3
tabs-to-spaces, v0.11.0
vim-mode, v0.54.0
vim-surround, v0.7.2

# Dev
No dev packages
vellerefond commented 9 years ago

I have not been able to reproduce this at all. Was this right after an update of the project-ring package?

Arsca commented 9 years ago

Yes, it was right after. I uninstalled it as there was the issue that I couldn't add any projects either after installation the package. I do not know if the problem is related to some other packages I had at the time.

vellerefond commented 9 years ago

I am closing this since I cannot reproduce it but I will keep an eye out in case it pops up again. The thing is that the error in this issue is in purely visual code (addition of a checkbox that allows the user to open a project in a new window) so the only way I can think of that this could have happened is for Atom to have had a problem/delay in rendering the project list. I don't know if that was caused by another package. Thank you for your input though.