magalhas / atom-jenkins

Keep track of your jenkins builds inside Atom
MIT License
1 stars 4 forks source link

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

Open wayne-o opened 8 years ago

wayne-o commented 8 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.3.1 System: Mac OS X 10.11.2 Thrown From: jenkins package, v0.3.5

Stack Trace

Uncaught TypeError: Cannot read property 'forEach' of undefined

At events.js:141

TypeError: Cannot read property 'forEach' of undefined
    at /Users/waynedouglas/.atom/packages/jenkins/lib/jenkins-gateway.coffee:42:34
    at Parser.<anonymous> (/Users/waynedouglas/.atom/packages/jenkins/node_modules/xml2js/lib/xml2js.js:483:18)
    at emitOne (events.js:77:13)
    at Parser.emit (events.js:169:7)
    at Object.onclosetag (/Users/waynedouglas/.atom/packages/jenkins/node_modules/xml2js/lib/xml2js.js:444:26)
    at emit (/Users/waynedouglas/.atom/packages/jenkins/node_modules/xml2js/node_modules/sax/lib/sax.js:639:35)
    at emitNode (/Users/waynedouglas/.atom/packages/jenkins/node_modules/xml2js/node_modules/sax/lib/sax.js:644:5)
    at closeTag (/Users/waynedouglas/.atom/packages/jenkins/node_modules/xml2js/node_modules/sax/lib/sax.js:903:7)
    at Object.write (/Users/waynedouglas/.atom/packages/jenkins/node_modules/xml2js/node_modules/sax/lib/sax.js:1293:13)
    at Parser.exports.Parser.Parser.parseString (/Users/waynedouglas/.atom/packages/jenkins/node_modules/xml2js/lib/xml2js.js:502:31)
    at Parser.parseString (/Users/waynedouglas/.atom/packages/jenkins/node_modules/xml2js/lib/xml2js.js:7:59)
    at Object.exports.parseString (/Users/waynedouglas/.atom/packages/jenkins/node_modules/xml2js/lib/xml2js.js:534:19)
    at /Users/waynedouglas/.atom/packages/jenkins/lib/jenkins-gateway.coffee:36:14
    at Request.<anonymous> (/Users/waynedouglas/.atom/packages/jenkins/lib/jenkins-gateway.coffee:17:5)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.mixin._fireSuccess (/Users/waynedouglas/.atom/packages/jenkins/node_modules/restler/lib/restler.js:229:10)
    at /Users/waynedouglas/.atom/packages/jenkins/node_modules/restler/lib/restler.js:161:20
    at IncomingMessage.parsers.auto (/Users/waynedouglas/.atom/packages/jenkins/node_modules/restler/lib/restler.js:402:7)
    at Request.mixin._encode (/Users/waynedouglas/.atom/packages/jenkins/node_modules/restler/lib/restler.js:198:29)
    at /Users/waynedouglas/.atom/packages/jenkins/node_modules/restler/lib/restler.js:157:16
    at Gunzip.onEnd (zlib.js:227:5)
    at emitNone (events.js:72:20)
    at Gunzip.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:893:12)
    at doNTCallback2 (node.js:441:9)
    at process._tickCallback (node.js:355:17)

Commands

     -9:08.5.0 core:paste (atom-text-editor.editor.is-focused)
     -9:08.0 core:backspace (atom-text-editor.editor.is-focused)
  2x -9:02.5.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
     -2:24.3.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:23.4.0 core:move-up (atom-text-editor.editor.is-focused)
     -2:23.1.0 core:move-right (atom-text-editor.editor.is-focused)
     -2:22.9.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:22.5.0 core:move-up (atom-text-editor.editor.is-focused)
     -2:22.2.0 core:move-right (atom-text-editor.editor.is-focused)
     -2:21.9.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:18.9.0 core:save (atom-text-editor.editor.is-focused)
     -0:51.3.0 core:paste (atom-text-editor#jenkins.password.editor.mini.is-focused)
     -0:49.3.0 core:undo (atom-text-editor#jenkins.password.editor.mini.is-focused)
     -0:40.5.0 core:paste (atom-text-editor#jenkins.url.editor.mini.is-focused)
     -0:27.7.0 core:save (atom-text-editor#jenkins.username.editor.mini.is-focused)
     -0:21.4.0 tabs:close-all-tabs (div.title)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ]
  },
  "jenkins": {

  }
}

Installed Packages

# User
atom-beautify, v0.28.19
jenkins, v0.3.5
linter, v1.11.3
linter-jshint, v1.2.1
refactor, v0.6.0

# Dev
No dev packages