felipefdl / wercker-status

Add Wercker status of the project to the Atom status bar.
https://atom.io/packages/wercker-status
MIT License
10 stars 4 forks source link

Uncaught TypeError: Cannot read property 'remote "origin"' of undefined #12

Open lbenie opened 8 years ago

lbenie commented 8 years ago

Maybe add an option to check for wercker status if there is a wercker file ?

[Enter steps to reproduce below:]

  1. ... open a project with no wercker file..
  2. ...

Atom Version: 1.5.3 System: Mac OS X 10.11.3 Thrown From: wercker-status package, v1.0.6

Stack Trace

Uncaught TypeError: Cannot read property 'remote "origin"' of undefined

At /Users/lucien/.atom/packages/wercker-status/lib/git.coffee:10

TypeError: Cannot read property 'remote "origin"' of undefined
    at /Users/lucien/.atom/packages/wercker-status/lib/git.coffee:10:13
    at ReadFileContext.callback (/Users/lucien/.atom/packages/wercker-status/node_modules/iniparser/lib/node-iniparser.js:30:4)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:303:13)

Commands

     -3:21.1.0 editor:newline (atom-text-editor.editor.is-focused)
     -3:17 core:save (atom-text-editor.editor.is-focused)
     -3:13.4.0 settings-view:open (atom-text-editor.editor.is-focused)
     -3:07.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -2:29.2.0 core:save (atom-text-editor.editor.is-focused)
     -1:32.4.0 settings-view:open (atom-text-editor.editor.is-focused)
  2x -0:50.7.0 editor:newline (atom-text-editor.editor.is-focused)
  9x -0:39.1.0 core:move-left (atom-text-editor.editor.is-focused)
  6x -0:36.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:34.7.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
 15x -0:26.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:17.4.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:16.6.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:14.6.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:14.1.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
     -0:04.2.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "linter-stylelint"
    ],
    "ignoredNames": [
      ".git",
      ".idea",
      "node_modules",
      "bower_components"
    ],
    "projectHome": "~/Documents/repos/git",
    "themes": [
      "atom-material-ui",
      "atom-material-syntax"
    ]
  },
  "wercker-status": {
    "Interval_Minutes": 2,
    "Password": "mypass",
    "Token": "mytoken",
    "Username": "myuser"
  }
}

Installed Packages

# User
Stylus, v3.0.0
Sublime-Style-Column-Selection, v1.5.1
angularjs, v0.3.4
atom-beautify, v0.28.23
atom-cursor-indent, v0.1.1
atom-grails, v0.1.0
atom-material-syntax, v0.4.3
atom-material-ui, v1.2.0
atom-typescript, v8.3.0
autocomplete-angular-material, v0.4.0
autosave-plus, v0.5.2
build, v0.55.0
build-grunt, v0.4.0
build-gulp, v0.7.0
color-picker, v2.1.1
editorconfig, v1.2.4
file-icons, v1.6.15
fonts, v1.1.0
gcc-make-run, v0.2.2
hidpi, v0.11.0
highlight-selected, v0.11.2
jade-beautify, v0.1.4
language-cmake, v0.1.4
language-groovy, v0.5.0
language-jade, v0.6.3
linter, v1.11.3
linter-clang, v3.4.4
linter-coffeelint, v1.1.2
linter-cpplint, v1.0.1
linter-csslint, v1.3.1
linter-glsl, v1.0.6
linter-haml, v1.1.0
linter-htmlhint, v1.0.3
linter-javac, v1.7.0
linter-jscs, v3.4.7
linter-jshint, v2.0.2
linter-jsonlint, v1.1.6
linter-markdown, v1.5.0
linter-pylint, v1.2.0
linter-stylint, v2.1.2
linter-tslint, v0.7.0
markdown-preview-plus, v2.2.2
pigments, v0.24.1
source-preview-jade, v0.1.1
svn, v0.0.9
travis-ci-status, v1.0.0
tree-view-git-branch, v0.0.6
wercker-status, v1.0.6

# Dev
No dev packages