wufuC / atom-autoupdate-packages

Keep your Atom packages update-to-date automatically
https://atom.io/packages/autoupdate-packages
MIT License
14 stars 0 forks source link

Uncaught TypeError: Cannot read property 'length' of undefined #1

Closed JostCrow closed 9 years ago

JostCrow commented 9 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.1.0-beta1 System: elementary OS Thrown From: autoupdate-packages package, v1.2.0

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

At /home/jorik/.atom/packages/autoupdate-packages/lib/notification-handler.coffee:65

TypeError: Cannot read property 'length' of undefined
  at Object.module.exports.removeStatusbarUpdateIcon (/home/jorik/.atom/packages/autoupdate-packages/lib/notification-handler.coffee:65:7)
  at Object.<anonymous> (/home/jorik/.atom/packages/autoupdate-packages/lib/notification-handler.coffee:75:18)

Commands

     -0:35.8.0 terminal-plus:context-rename (i.icon.icon-terminal)
     -0:33.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:04.4.0 settings-view:open (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-material-ui",
      "material-design-syntax"
    ],
    "openEmptyEditorOnStart": false,
    "autoHideMenuBar": true
  },
  "autoupdate-packages": {
    "lastUpdateTimestamp": 1446020039231
  }
}

Installed Packages

# User
atom-material-ui, v0.6.2
autocomplete-python, v0.9.2
autohide-tree-view, v0.25.1
autoupdate-packages, v1.2.0
color-picker, v2.0.13
django-atom, v0.2.4
flex-tool-bar, v0.6.0
highlight-line, v0.11.0
icon-fonts, v1.7.1
imdone-atom, v1.1.49
linter, v1.9.1
linter-pep8, v1.0.1
linter-pylint, v1.0.3
material-design-syntax, v1.7.0
minimap, v4.15.0
minimap-find-and-replace, v4.3.1
minimap-git-diff, v4.1.8
minimap-highlight-selected, v4.3.1
minimap-linter, v1.0.0
minimap-pigments, v0.1.7
pigments, v0.18.1
python-tools, v0.6.5
selection-highlight, v0.1.4
set-syntax, v0.3.0
seti-icons, v0.4.5
soft-wrap-indicator, v0.7.0
terminal-plus, v0.12.3
tool-bar, v0.1.9
tool-bar-besser, v0.2.4

# Dev
No dev packages
wufuC commented 9 years ago

Thanks for reporting. This stems from the newest chunk of codes that attempts to remove the blue update icon/button living in the status bar and is triggered by the presence of more than one bottom panels (in addition to the one occupied by the status bar). In your case the extra bottom panel is created by terminal-plus.

This should be fixed in v1.2.1, which will be available in a few minutes.

wufuC commented 9 years ago

I'm closing this for now. Please let me know if this error persists in v1.2.1.

JostCrow commented 9 years ago

The package is working now. It just did an update and everything passed. Thanks.