git-blame
git-blame copied to clipboard
Uncaught TypeError: undefined is not a function
I get this error when the blame view is open, and I edit (e.g. add an empty line, etc.) and save the file.
Atom says that the issue has already been reported in https://github.com/alexcorre/git-blame/issues/65, but the (original) stack trace in that issue seems completely different (although the error message is the same).
Similar stack traces also reported in https://github.com/alexcorre/git-blame/issues/65#issuecomment-126313620 and https://github.com/alexcorre/git-blame/issues/65#issuecomment-129464711.
TypeError: undefined is not a function
at [object Object].React.createClass.componentWillUnmount (/home/sami/.atom/packages/git-blame/lib/views/blame-line-view.coffee:63:22)
at [object Object].ReactCompositeComponentMixin.unmountComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:805:12)
at [object Object].ReactMultiChild.Mixin._unmountChildByName (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:422:13)
at [object Object].ReactMultiChild.Mixin._updateChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:314:16)
at [object Object].ReactMultiChild.Mixin.updateChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:254:14)
at [object Object].ReactDOMComponent.Mixin._updateDOMChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:395:12)
at [object Object].updateComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:248:12)
at [object Object].ReactComponent.Mixin.performUpdateIfNecessary (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:333:12)
at [object Object].ReactComponent.Mixin.receiveComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:314:12)
at [object Object].ReactDOMComponent.Mixin.receiveComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:221:43)
at [object Object].updateComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1181:31)
at [object Object].ReactCompositeComponentMixin._performComponentUpdate (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1123:10)
at [object Object].ReactCompositeComponentMixin.performUpdateIfNecessary (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1063:14)
at [object Object].ReactComponent.Mixin.receiveComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:314:12)
at [object Object].ReactCompositeComponentMixin.receiveComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1149:43)
at [object Object].ReactMultiChild.Mixin._updateChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:294:21)
at [object Object].ReactMultiChild.Mixin.updateChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:254:14)
at [object Object].ReactDOMComponent.Mixin._updateDOMChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:395:12)
at [object Object].updateComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:248:12)
at [object Object].ReactComponent.Mixin.performUpdateIfNecessary (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:333:12)
at [object Object].ReactComponent.Mixin.receiveComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:314:12)
at [object Object].ReactDOMComponent.Mixin.receiveComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:221:43)
at [object Object].ReactMultiChild.Mixin._updateChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:294:21)
at [object Object].ReactMultiChild.Mixin.updateChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:254:14)
at [object Object].ReactDOMComponent.Mixin._updateDOMChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:395:12)
at [object Object].updateComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:248:12)
at [object Object].ReactComponent.Mixin.performUpdateIfNecessary (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:333:12)
at [object Object].ReactComponent.Mixin.receiveComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:314:12)
at [object Object].ReactDOMComponent.Mixin.receiveComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:221:43)
at [object Object].ReactMultiChild.Mixin._updateChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:294:21)
at [object Object].ReactMultiChild.Mixin.updateChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:254:14)
at [object Object].ReactDOMComponent.Mixin._updateDOMChildren (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:395:12)
at [object Object].updateComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:248:12)
at [object Object].ReactComponent.Mixin.performUpdateIfNecessary (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:333:12)
at [object Object].ReactComponent.Mixin.receiveComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:314:12)
at [object Object].ReactDOMComponent.Mixin.receiveComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:221:43)
at [object Object].updateComponent (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1181:31)
at [object Object].ReactCompositeComponentMixin._performComponentUpdate (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1123:10)
at [object Object].ReactCompositeComponentMixin.performUpdateIfNecessary (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1063:14)
at runBatchedUpdates (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactUpdates.js:152:17)
at ReactReconcileTransaction.Mixin.perform (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/Transaction.js:141:20)
at ReactUpdatesFlushTransaction.Mixin.perform (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/Transaction.js:141:20)
at ReactUpdatesFlushTransaction.mixInto.perform (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactUpdates.js:98:38)
at Object.flushBatchedUpdates (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactUpdates.js:176:19)
at ReactDefaultBatchingStrategyTransaction.Mixin.closeAll (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/Transaction.js:214:42)
at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/Transaction.js:155:16)
at Object.ReactDefaultBatchingStrategy.batchedUpdates (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDefaultBatchingStrategy.js:70:19)
at Object.enqueueUpdate (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactUpdates.js:209:22)
at [object Object].ReactCompositeComponentMixin.replaceState (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:878:20)
at [object Object].ReactCompositeComponentMixin.setState (/home/sami/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:850:10)
at /home/sami/.atom/packages/git-blame/lib/views/blame-list-view.coffee:130:10
at /home/sami/.atom/packages/git-blame/lib/util/blamer.js:65:7
at /home/sami/.atom/packages/git-blame/lib/util/gitCommander.js:87:14
at ChildProcess.<anonymous> (/home/sami/.atom/packages/git-blame/lib/util/gitCommander.js:60:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:169:7)
at maybeClose (child_process.js:997:16)
at Socket.<anonymous> (child_process.js:1166:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:166:7)
at Pipe.close (net.js:464:12)
This was happing with me when save a file
Atom Version: 1.0.7 System: elementary OS Thrown From: git-blame package, v0.4.5
Stack Trace
Uncaught TypeError: undefined is not a function
At /home/ricardoleite/.atom/packages/git-blame/lib/views/blame-line-view.coffee:63
TypeError: undefined is not a function
at [object Object].React.createClass.componentWillUnmount (/home/ricardoleite/.atom/packages/git-blame/lib/views/blame-line-view.coffee:63:22)
at [object Object].ReactCompositeComponentMixin.unmountComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:805:12)
at [object Object].ReactMultiChild.Mixin._unmountChildByName (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:422:13)
at [object Object].ReactMultiChild.Mixin._updateChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:314:16)
at [object Object].ReactMultiChild.Mixin.updateChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:254:14)
at [object Object].ReactDOMComponent.Mixin._updateDOMChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:395:12)
at [object Object].updateComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:248:12)
at [object Object].ReactComponent.Mixin.performUpdateIfNecessary (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:333:12)
at [object Object].ReactComponent.Mixin.receiveComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:314:12)
at [object Object].ReactDOMComponent.Mixin.receiveComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:221:43)
at [object Object].updateComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1181:31)
at [object Object].ReactCompositeComponentMixin._performComponentUpdate (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1123:10)
at [object Object].ReactCompositeComponentMixin.performUpdateIfNecessary (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1063:14)
at [object Object].ReactComponent.Mixin.receiveComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:314:12)
at [object Object].ReactCompositeComponentMixin.receiveComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1149:43)
at [object Object].ReactMultiChild.Mixin._updateChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:294:21)
at [object Object].ReactMultiChild.Mixin.updateChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:254:14)
at [object Object].ReactDOMComponent.Mixin._updateDOMChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:395:12)
at [object Object].updateComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:248:12)
at [object Object].ReactComponent.Mixin.performUpdateIfNecessary (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:333:12)
at [object Object].ReactComponent.Mixin.receiveComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:314:12)
at [object Object].ReactDOMComponent.Mixin.receiveComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:221:43)
at [object Object].ReactMultiChild.Mixin._updateChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:294:21)
at [object Object].ReactMultiChild.Mixin.updateChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:254:14)
at [object Object].ReactDOMComponent.Mixin._updateDOMChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:395:12)
at [object Object].updateComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:248:12)
at [object Object].ReactComponent.Mixin.performUpdateIfNecessary (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:333:12)
at [object Object].ReactComponent.Mixin.receiveComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:314:12)
at [object Object].ReactDOMComponent.Mixin.receiveComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:221:43)
at [object Object].ReactMultiChild.Mixin._updateChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:294:21)
at [object Object].ReactMultiChild.Mixin.updateChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMultiChild.js:254:14)
at [object Object].ReactDOMComponent.Mixin._updateDOMChildren (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:395:12)
at [object Object].updateComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:248:12)
at [object Object].ReactComponent.Mixin.performUpdateIfNecessary (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:333:12)
at [object Object].ReactComponent.Mixin.receiveComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactComponent.js:314:12)
at [object Object].ReactDOMComponent.Mixin.receiveComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDOMComponent.js:221:43)
at [object Object].updateComponent (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1181:31)
at [object Object].ReactCompositeComponentMixin._performComponentUpdate (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1123:10)
at [object Object].ReactCompositeComponentMixin.performUpdateIfNecessary (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:1063:14)
at runBatchedUpdates (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactUpdates.js:152:17)
at ReactReconcileTransaction.Mixin.perform (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/Transaction.js:141:20)
at ReactUpdatesFlushTransaction.Mixin.perform (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/Transaction.js:141:20)
at ReactUpdatesFlushTransaction.mixInto.perform (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactUpdates.js:98:38)
at Object.flushBatchedUpdates (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactUpdates.js:176:19)
at ReactDefaultBatchingStrategyTransaction.Mixin.closeAll (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/Transaction.js:214:42)
at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/Transaction.js:155:16)
at Object.ReactDefaultBatchingStrategy.batchedUpdates (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDefaultBatchingStrategy.js:70:19)
at Object.enqueueUpdate (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactUpdates.js:209:22)
at [object Object].ReactCompositeComponentMixin.replaceState (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:878:20)
at [object Object].ReactCompositeComponentMixin.setState (/home/ricardoleite/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactCompositeComponent.js:850:10)
at /home/ricardoleite/.atom/packages/git-blame/lib/views/blame-list-view.coffee:130:10
at /home/ricardoleite/.atom/packages/git-blame/lib/util/blamer.js:65:7
at /home/ricardoleite/.atom/packages/git-blame/lib/util/gitCommander.js:87:14
at ChildProcess.<anonymous> (/home/ricardoleite/.atom/packages/git-blame/lib/util/gitCommander.js:60:14)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:169:7)
at maybeClose (child_process.js:997:16)
at Socket.<anonymous> (child_process.js:1166:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:166:7)
at Pipe.close (net.js:464:12)
Commands
-4:22.6.0 core:cut (atom-text-editor.editor.is-focused)
-4:21.3.0 core:paste (atom-text-editor.editor.is-focused)
-4:18.7.0 core:copy (atom-text-editor.editor.is-focused)
-4:17.8.0 core:paste (atom-text-editor.editor.is-focused)
-4:12.4.0 core:move-left (atom-text-editor.editor.is-focused)
-4:04.9.0 core:copy (atom-text-editor.editor.is-focused)
-4:01.8.0 core:paste (atom-text-editor.editor.is-focused)
8x -3:59.6.0 core:move-right (atom-text-editor.editor.is-focused)
2x -3:57.9.0 core:save (atom-text-editor.editor.is-focused)
-3:24.9.0 core:backspace (atom-text-editor.editor.is-focused)
-3:23.4.0 core:save (atom-text-editor.editor.is-focused)
-2:32.4.0 core:cut (atom-text-editor.editor.is-focused)
-2:31.2.0 core:save (atom-text-editor.editor.is-focused)
-2:24 core:paste (atom-text-editor.editor.is-focused)
2x -2:12.5.0 core:copy (atom-text-editor.editor.is-focused)
-0:01.7.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
Config
{
"core": {
"disabledPackages": [
"symbols-view",
"autocomplete-elixir",
"linter-rubocop"
],
"excludeVcsIgnoredPaths": false,
"projectHome": "/home/ricardoleite/src",
"themes": [
"atom-material-ui",
"one-dark-syntax"
]
},
"git-blame": {
"dateFormatString": "DD/MM/YYYY",
"ignoreWhiteSpaceDiffs": true
}
}
Installed Packages
# User
Sublime-Style-Column-Selection, v1.3.0
atom-beautify, v0.28.11
atom-ctags, v4.2.0
atom-material-ui, v0.6.0
atom-zeal, v0.1.3
atomatigit, v1.5.4
autocomplete-ctags, v0.3.1
autocomplete-haskell, v0.4.5
autocomplete-paths, v1.0.2
autocomplete-ruby, v0.1.0
color-picker, v2.0.11
css-snippets, v0.8.0
ctags-status, v1.3.3
docs-snippets, v0.8.0
file-icons, v1.6.6
git-blame, v0.4.5
git-log, v0.4.1
git-tab-status, v1.9.2
gulp-snippets, v0.6.1
haskell-ghc-mod, v0.8.10
html-id-class-snippets, v1.4.1
ide-haskell, v0.7.1
language-diff, v0.3.1
language-gitignore, v0.2.0
language-haskell, v1.3.1
language-txt2tags, v0.3.0
linter, v1.4.3
linter-coffeelint, v1.0.2
linter-erb, v0.1.1
linter-haml, v1.0.0
linter-js-yaml, v1.1.1
linter-jshint, v1.1.5
linter-less, v2.1.0
linter-ruby, v1.0.2
linter-tidy, v1.0.1
local-history, v3.2.3
merge-conflicts, vundefined
minimap, v4.13.1
minimap-bookmarks, v0.1.0
minimap-find-and-replace, v4.3.0
minimap-git-diff, v4.1.8
minimap-pigments, v0.1.6
minimap-selection, v4.3.0
pigments, v0.11.0
rspec-snippets, v0.4.0
ruby-block, v0.3.5
spotify-linux, v0.3.2
symbols-tree-view, v0.9.3
sync-settings, v0.6.0
tab-smart-sort, v0.1.4
wakatime, v4.0.12
# Dev
No dev packages
:+1:
there have been lots of bugs reported with the react view layer and i think most are related to atom compatibility. I've spent some time away from the view layer of the project. Starting to read up on how things are being done in the view layer for atom nowadays. Should have fixes out for this as soon as I have time to get up to speed on new apis in atom that could be helpful.