Skip to content
This repository has been archived by the owner on Aug 4, 2024. It is now read-only.

Uncaught TypeError: _this.trigger is not a function #106

Open
ibroadfo opened this issue Sep 24, 2015 · 5 comments · May be fixed by #121
Open

Uncaught TypeError: _this.trigger is not a function #106

ibroadfo opened this issue Sep 24, 2015 · 5 comments · May be fixed by #121

Comments

@ibroadfo
Copy link

throws error after stashing/stash popping; stash manipulation seems to successfully complete though.

Atom Version: 1.0.17
System: Mac OS X 10.10.5
Thrown From: atomatigit package, v1.5.4

Stack Trace

Uncaught TypeError: _this.trigger is not a function

At /Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/async.js:95

TypeError: _this.trigger is not a function
    at /Users/ibroadfo/.atom/packages/atomatigit/lib/models/repo.coffee:78:8
    at tryCatch1 (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/util.js:45:21)
    at Promise$_callHandler [as _callHandler] (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:660:13)
    at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:675:18)
    at Promise$_settlePromiseAt [as _settlePromiseAt] (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:845:14)
    at Promise$_settlePromises [as _settlePromises] (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:988:14)
    at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/async.js:77:12)
    at Async$consumeFunctionBuffer (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/async.js:40:14)
    at doNTCallback0 (node.js:416:9)
    at process._tickCallback (node.js:345:13)

Commands

     -0:36.4.0 atomatigit:show (atom-text-editor.editor.is-focused)
     -0:20.7.0 atomatigit:toggle (atom-text-editor.editor.is-focused)
     -0:07.8.0 core:save (atom-text-editor.editor.is-focused)
     -0:03.8.0 atomatigit:stash (div.file-list-view.list-view)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ],
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store"
    ]
  },
  "atomatigit": {}
}

Installed Packages

# User
atomatigit, v1.5.4
auto-indent, v0.5.0
color-picker, v2.0.12
cucumber, v0.5.0
ember-cli-helper, v0.9.0
ember-snippets, v1.4.0
feedback, v0.38.0
git-diff-details, v0.20.0
language-diff, v0.3.1
language-ember-htmlbars, v0.3.0
pigments, v0.15.0
tag, v0.3.0

# Dev
No dev packages
@ibroadfo
Copy link
Author

here's the error from stash popping

Atom Version: 1.0.17
System: Mac OS X 10.10.5
Thrown From: atomatigit package, v1.5.4

Stack Trace

Uncaught TypeError: _this.trigger is not a function

At /Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/async.js:95

TypeError: _this.trigger is not a function
    at /Users/ibroadfo/.atom/packages/atomatigit/lib/models/repo.coffee:84:8
    at tryCatch1 (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/util.js:45:21)
    at Promise$_callHandler [as _callHandler] (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:660:13)
    at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:675:18)
    at Promise$_settlePromiseAt [as _settlePromiseAt] (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:845:14)
    at Promise$_settlePromises [as _settlePromises] (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:988:14)
    at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/async.js:77:12)
    at Async$consumeFunctionBuffer (/Users/ibroadfo/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/async.js:40:14)
    at doNTCallback0 (node.js:416:9)
    at process._tickCallback (node.js:345:13)

Commands

     -1:59.1.0 atomatigit:show (atom-text-editor.editor.is-focused)
     -1:43.4.0 atomatigit:toggle (atom-text-editor.editor.is-focused)
     -1:30.6.0 core:save (atom-text-editor.editor.is-focused)
     -1:26.6.0 atomatigit:stash (div.file-list-view.list-view)
     -0:03.6.0 atomatigit:stash-pop (div.file-list-view.list-view)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ],
    "ignoredNames": [
      ".git",
      ".svn",
      ".DS_Store"
    ]
  },
  "atomatigit": {}
}

Installed Packages

# User
atomatigit, v1.5.4
auto-indent, v0.5.0
color-picker, v2.0.12
cucumber, v0.5.0
ember-cli-helper, v0.9.0
ember-snippets, v1.4.0
feedback, v0.38.0
git-diff-details, v0.20.0
language-diff, v0.3.1
language-ember-htmlbars, v0.3.0
pigments, v0.15.0
tag, v0.3.0

# Dev
No dev packages

@sLite
Copy link

sLite commented Nov 2, 2015

any news on this? i cant fetch my repos from atomatigit

@PointedEars
Copy link

[Enter steps to reproduce below:]

  1. Stash (z) or unstash (Shift+Z) file in Atomatigit sidebar

Atom Version: 1.6.2
System: Mac OS X 10.11.4
Thrown From: atomatigit package, v1.5.5

Stack Trace

Uncaught TypeError: _this.trigger is not a function

At /Users/tholah/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/async.js:95

TypeError: _this.trigger is not a function
  at /Users/tholah/.atom/packages/atomatigit/lib/models/repo.coffee:84:8
  at tryCatch1 (/Users/tholah/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/util.js:45:21)
  at Promise$_callHandler [as _callHandler] (/Users/tholah/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:660:13)
  at Promise$_settlePromiseFromHandler [as _settlePromiseFromHandler] (/Users/tholah/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:675:18)
  at Promise$_settlePromiseAt [as _settlePromiseAt] (/Users/tholah/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:845:14)
  at Promise$_settlePromises [as _settlePromises] (/Users/tholah/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/promise.js:988:14)
  at Async$_consumeFunctionBuffer [as _consumeFunctionBuffer] (/Users/tholah/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/async.js:77:12)
  at Async$consumeFunctionBuffer (/Users/tholah/.atom/packages/atomatigit/node_modules/promised-git/node_modules/bluebird/js/main/async.js:40:14)
  at doNTCallback0 (node.js:419:9)
  at process._tickCallback (node.js:348:13)

Commands

     -0:34.9.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:32.6.0 atomatigit:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:18.1.0 atomatigit:stash-pop (div.file-list-view.list-view)

Config

{
  "core": {
    "customFileTypes": {
      "source.json": [
        ".arcconfig"
      ]
    },
    "disabledPackages": [
      "linter-shellcheck",
      "ctrl-last-tab",
      "task-list",
      "atom-jshint",
      "keyboard-localization",
      "save-session",
      "tree-view",
      "linter",
      "git-tabs",
      "fixmyjs"
    ],
    "excludeVcsIgnoredPaths": false,
    "packagesWithKeymapsDisabled": [
      "open-on-github",
      "git-diff"
    ]
  },
  "atomatigit": {}
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.5.1
atom-qunit-snippets, v1.1.0
atom-ternjs, v0.13.2
atomatigit, v1.5.5
auto-detect-indentation, v1.0.0
autoclose-html, v0.23.0
autocomplete-html-entities, v0.1.0
autocomplete-paths, v1.0.2
autoupdate-packages, v1.3.1
break-time, v0.2.1
browser-plus, v0.0.54
character-table, v0.4.3
clipboard-plus, v0.5.1
color-picker, v2.1.1
column-select, v0.2.0
compare-files, v0.6.2
css-snippets, v0.9.0
css-specificity, v0.2.2
docblockr, v0.7.3
docs-snippets, v0.8.0
file-icons, vundefined
filesize, v0.4.2
git-go, v1.0.2
git-hide, v0.1.2
git-log, v0.4.1
highlight-selected, v0.11.2
jade-snippets, v0.5.0
javascript-snippets, v1.2.1
js-refactor, v0.6.0
keyboard-scroll, v0.4.0
language-diff, v0.4.0
language-jade, v0.7.1
line-count-status, v0.0.3
linter-csslint, vundefined
linter-htmlhint, v1.1.1
linter-jade, v0.3.2
linter-jshint, vundefined
linter-less, v2.4.2
local-history, v3.2.3
markdown-scroll-sync, vundefined
minimap, v4.21.0
minimap-cursorline, v0.1.0
minimap-find-and-replace, v4.5.0
minimap-git-diff, v4.2.0
minimap-hide, v0.3.0
minimap-linter, v1.1.1
minimap-pigments, v0.2.0
nav-panel, v0.0.11
navigate, v0.1.13
nodejs-snippets, v2.0.0
nuclide, v0.129.0
open-recent, v5.0.0
pigments, v0.26.0
preview-plus, v1.2.6
project-view, v0.5.0
recent-projects, v0.9.5
refactor, v0.6.0
remember-file-positions, v0.2.2
restore-windows, v0.4.1
revert-buffer, v0.5.0
smart-tab-name, v1.0.5
snippets-jade, v0.1.1
source-preview-jade, v0.1.1
stash-tabs, v0.1.0
symbols-tree-view, v0.12.0
text-manipulation, v0.6.0
tree-view-git-branch, v0.1.2
tree-view-git-status, v0.2.3
up2date, v0.1.2
vim-mode-clipboard-plus, v0.2.0
vim-mode-plus, vundefined
xkcd-comics, v0.3.0

# Dev
No dev packages

@fooishbar
Copy link

Caught this by trying to push to a stash with 'z'; no files were currently staged, and I just did it with one of the files highlighted. The stash did complete properly, and the view updated to reflect it.

@tggreene tggreene linked a pull request Jul 15, 2016 that will close this issue
@jclosure
Copy link

I get this error when I try to push a commit (with 'p') via automatigit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants