jazzpi / spotify-linux

Atom spotify integration for Linux
https://atom.io/packages/spotify-linux
MIT License
9 stars 0 forks source link

Uncaught TypeError: Cannot read property '0' of undefined #11

Open awilliams000 opened 8 years ago

awilliams000 commented 8 years ago

[Enter steps to reproduce below:]

  1. ...Occurs when spotify is running and atom editor is started with spotify-linux plugin enabled
  2. ...Occurs when spotify is running and atom editor is started with spotify-linux plugin enabled AND whenever a video is started in VLC application, error is thrown.

Atom Version: 1.7.4 System: Ubuntu 14.04.4 Thrown From: spotify-linux package, v0.3.2

Stack Trace

Uncaught TypeError: Cannot read property '0' of undefined

At /home/sp00k/.atom/packages/spotify-linux/lib/spotify-state.coffee:43

TypeError: Cannot read property '0' of undefined
    at SpotifyState.module.exports.SpotifyState.updateData (/home/sp00k/.atom/packages/spotify-linux/lib/spotify-state.coffee:43:26)
    at /home/sp00k/.atom/packages/spotify-linux/lib/spotify-state.coffee:1:1
    at EventEmitter.sigHandlers.(anonymous function) (/home/sp00k/.atom/packages/spotify-linux/node_modules/dbus-native/lib/introspect.js:31:41)
    at emitTwo (events.js:87:13)
    at EventEmitter.emit (events.js:172:7)
    at EventEmitter.<anonymous> (/home/sp00k/.atom/packages/spotify-linux/node_modules/dbus-native/lib/bus.js:118:25)
    at emitOne (events.js:77:13)
    at EventEmitter.emit (events.js:169:7)
    at /home/sp00k/.atom/packages/spotify-linux/node_modules/dbus-native/index.js:98:12
    at Socket.<anonymous> (/home/sp00k/.atom/packages/spotify-linux/node_modules/dbus-native/lib/message.js:53:9)
    at emitNone (events.js:72:20)
    at Socket.emit (events.js:166:7)
    at emitReadable_ (_stream_readable.js:411:10)
    at emitReadable (_stream_readable.js:405:7)
    at readableAddChunk (_stream_readable.js:157:11)
    at Socket.Readable.push (_stream_readable.js:110:10)
    at Pipe.onread (net.js:523:20)

Commands

     -9:57.9.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-always.seti-ui-no-icons.theme-solarized-dark-syntax.theme-atom-solarized-dark-ui)

Config

{
  "core": {
    "ignoredNames": [
      ".git",
      ".hg",
      ".svn",
      ".DS_Store",
      "._*",
      "Thumbs.db",
      ".unison",
      "CVS",
      ".AppleDouble",
      ".LSOverride",
      ".Spotlight-V100",
      ".Trashes",
      "desktop.ini",
      "*.lock",
      "*.sock",
      "*.pid",
      "*.sw?",
      ".unison*",
      "*~"
    ],
    "themes": [
      "atom-solarized-dark-ui",
      "solarized-dark-syntax"
    ]
  },
  "spotify-linux": {}
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.5.1
angularjs, v0.3.4
atom-gdb, v0.4.0
atom-pair, v2.0.10
atom-solarized-dark-ui, v0.25.0
autoclose-html, v0.23.0
autocomplete-python, v1.7.3
color-picker, v2.1.1
emmet, v2.4.3
file-icons, v1.7.12
floobits, v0.31.3
git-log, v0.4.1
highlight-line, v0.11.1
iex, v0.9.27
language-chef, v0.9.0
language-lua, v0.9.4
language-nse, v0.13.0
language-rspec, v0.5.0
language-rust, v0.4.6
linter, v1.11.4
linter-csslint, v1.3.2
linter-jshint, v2.1.0
linter-lua, v1.0.2
linter-rubocop, v0.4.7
linter-ruby, v1.2.2
linter-rust, v0.4.6
merge-conflicts, v1.4.3
minimap, v4.24.3
minimap-find-and-replace, v4.5.1
minimap-git-diff, v4.3.1
motepair, v0.21.0
nitrogen, v0.1.6
node-debugger, v1.7.0
project-manager, v2.9.7
pull-requests, v0.0.23
racer, v0.20.0
react, v0.15.0
regex-railroad-diagram, v0.16.0
remote-sync, v4.1.2
rust-api-docs-helper, v0.5.1
spotify-linux, v0.3.2
sync-settings, v0.7.2
vagrant, v0.1.0
vim-mode, v0.65.1

# Dev
No dev packages