alexcorre / git-blame

Plugin for Atom Editor. Toggle git-blame annotations for the current file in the gutter.
MIT License
98 stars 58 forks source link

Uncaught TypeError: Cannot read property 'null' of undefined #143

Open felixkempf opened 7 years ago

felixkempf commented 7 years ago
  1. have a git repository open as project
  2. open unrelated file out of this folder (~/.profile) via CLI with Atom
  3. This Error message pops up and reopens every time I click anywhere inside Atom

Atom Version: 1.8.0 System: Mac OS X 10.11.5 Thrown From: git-blame package, v0.4.8

Stack Trace

Uncaught TypeError: Cannot read property 'null' of undefined

At /Users/flix/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMount.js:510

TypeError: Cannot read property 'null' of undefined
    at Object.ReactMount.findReactContainerForID (/Users/flix/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactMount.js:510:50)
    at findParent (/Users/flix/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactEventListener.js:46:30)
    at handleTopLevelImpl (/Users/flix/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactEventListener.js:81:16)
    at ReactDefaultBatchingStrategyTransaction.Mixin.perform (/Users/flix/.atom/packages/git-blame/node_modules/react-atom-fork/lib/Transaction.js:141:20)
    at Object.ReactDefaultBatchingStrategy.batchedUpdates (/Users/flix/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactDefaultBatchingStrategy.js:70:19)
    at Object.batchedUpdates (/Users/flix/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactUpdates.js:113:20)
    at ReactEventListener.dispatchEvent (/Users/flix/.atom/packages/git-blame/node_modules/react-atom-fork/lib/ReactEventListener.js:186:20)

Commands

     -9:39.5.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
     -9:38 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -9:38 core:cancel (atom-text-editor.editor.mini.is-focused)
     -9:37.3.0 application:new-file (atom-text-editor.editor.is-focused)
     -9:35 core:backspace (atom-text-editor.editor.is-focused)
     -9:08.2.0 core:select-all (atom-text-editor.editor.is-focused)
     -9:07.5.0 core:cut (atom-text-editor.editor.is-focused)
     -0:19.8.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:17 core:paste (atom-text-editor.editor.is-focused)
     -0:12.7.0 core:save (atom-text-editor.editor.is-focused)
     -0:11.6.0 core:close (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "symbols-view"
    ],
    "excludeVcsIgnoredPaths": false,
    "ignoredNames": [
      ".git",
      ".hg",
      ".svn",
      ".DS_Store",
      "._*",
      "Thumbs.db",
      ".tag*",
      "tags"
    ],
    "openEmptyEditorOnStart": false,
    "packagesWithKeymapsDisabled": [],
    "themes": [
      "one-dark-ui",
      "monokai"
    ]
  },
  "git-blame": {}
}

Installed Packages

# User
Sublime-Style-Column-Selection, v1.5.1
atom-beautify, v0.29.10
atom-ctags, v4.5.2
autocomplete-ctags, v0.4.1
autocomplete-php, v0.3.7
color-tabs, v0.1.8
color-tabs-regex, v0.2.5
docblockr, v0.7.3
editorconfig, v1.4.1
expand-selection-to-quotes, v0.9.0
git-blame, v0.4.8
highlight-selected, v0.11.2
linter, v1.11.14
linter-php, v1.2.0
monokai, v0.18.0
simple-panes, v1.0.1
webbox-color, v0.5.9

# Dev
No dev packages
Vasfed commented 7 years ago

Still present in 0.4.11

tnrich commented 7 years ago

Seeing this as well... It is quite frustrating because even when I close the offending tab that was opened from the terminal, it still occurs.