littlebee / git-time-machine

Atom package that allows you to travel back in commit history
MIT License
1.12k stars 37 forks source link

Uncaught TypeError: Cannot read property 'clearDiff' of null #98

Closed ama-web closed 7 years ago

ama-web commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.14.3 x64 Electron: 1.3.13 OS: Unknown Windows version Thrown From: git-time-machine package 1.5.6

Stack Trace

Uncaught TypeError: Cannot read property 'clearDiff' of null

At C:\Users\kasahara2\.atom\packages\git-time-machine\node_modules\split-diff\lib\split-diff.coffee:244

TypeError: Cannot read property 'clearDiff' of null
    at Object._resumeUpdateDiff (/packages/split-diff/lib/split-diff.coffee:244:14)
    at /packages/split-diff/lib/split-diff.coffee:230:8
    at /app.asar/src/buffered-process.js:177:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:543:20)

Commands

  3x -0:14.2.0 vim-mode:reset-normal-mode (input.hidden-input)
     -0:12.8.0 vim-mode:move-down (input.hidden-input)
     -0:12.7.0 vim-mode:move-up (input.hidden-input)
     -0:12.6.0 vim-mode:move-down (input.hidden-input)
     -0:12.6.0 vim-mode:move-up (input.hidden-input)
     -0:12.5.0 vim-mode:move-down (input.hidden-input)
     -0:12.4.0 vim-mode:move-up (input.hidden-input)
  2x -0:12.3.0 vim-mode:move-down (input.hidden-input)
     -0:12.1.0 vim-mode:move-up (input.hidden-input)
  3x -0:12 vim-mode:move-down (input.hidden-input)
  4x -0:11.3.0 vim-mode:move-up (input.hidden-input)
  3x -0:10.8.0 vim-mode:move-down (input.hidden-input)
  3x -0:10.2.0 vim-mode:move-up (input.hidden-input)
  4x -0:09.7.0 vim-mode:move-down (input.hidden-input)
  3x -0:09.1.0 vim-mode:move-up (input.hidden-input)
  2x -0:03.2.0 blur (input.hidden-input)

Non-Core Packages

angularjs 0.4.0 
ask-stack 2.2.0 
atom-alignment 0.12.1 
atom-auto-programming 0.1.2 
atom-autocomplete-php 0.22.0 
atom-beautify 0.29.17 
atom-django 0.3.2 
atom-ternjs 0.17.2 
auto-encoding 0.6.3 
autocomplete-modules 1.6.7 
autocomplete-onsenui 0.1.1 
autocomplete-paths 1.0.5 
autocomplete-python 1.8.57 
color-picker 2.2.5 
convert-to-utf8 0.2.4 
cursor-history 0.9.1 
default-encoding 0.8.0 
django-atom 0.2.4 
docblockr 0.9.1 
editor-settings 1.1.2 
emmet 2.4.3 
environment 1.3.1 
ex-mode 0.13.1 
file-icons 2.0.15 
file-types 0.5.5 
git-log 0.4.1 
git-plus 7.3.3 
git-status 0.3.4 
git-time-machine 1.5.6 
go-debug 1.0.4 
go-plus 5.2.0 
hacking-the-kernel 1.6.2 
hacking-the-kernel-ui 1.6.2 
highlight-line 0.12.0 
highlight-selected 0.12.0 
japanese-menu 1.9.0 
javascript-snippets 1.2.1 
language-ace 1.1.0 
language-apache 1.7.0 
language-batch 0.4.0 
language-csv 1.1.2 
language-cython 0.3.0 
language-docker 1.1.7 
language-generic-config 1.3.0 
language-htaccess 0.1.1 
language-ilasm 0.0.1 
language-ini 1.18.0 
language-jade 0.7.2 
language-lua 0.9.11 
language-nginx 0.6.2 
language-vb 0.1.0-pre1 
line-ending-converter 1.3.2 
linter 1.11.23 
linter-csslint 1.3.4 
linter-docker 0.1.4 
linter-eslint 8.1.2 
linter-golinter 1.2.1 
linter-htmlhint 1.3.2 
linter-jade 0.3.2 
linter-js-yaml 1.2.7 
linter-jshint 3.0.2 
linter-jsonlint 1.3.0 
linter-less 2.6.0 
linter-markdown 3.1.0 
linter-php 1.3.1 
linter-pycodestyle 2.0.0 
linter-stylelint 3.9.0 
linter-stylint 2.2.6 
linter-xmllint 1.4.0 
livestyle-atom 0.2.7 
local-history 4.0.1 
merge-conflicts 1.4.4 
minimap 4.26.8 
minimap-autohide 0.10.1 
minimap-bookmarks 0.4.2 
minimap-cursorline 0.2.0 
minimap-find-and-replace 4.5.1 
minimap-git-diff 4.3.1 
minimap-highlight-selected 4.5.0 
minimap-linter 1.6.0 
minimap-pigments 0.2.2 
nord-atom-ui 0.10.1 
permanent-delete 0.1.5 
pigments 0.39.0 
preview undefined 
python-autopep8 0.1.3 
python-debugger 0.2.0 
python-tools 0.6.9 
riot-tag 1.1.1 
script 3.14.1 
sequential-number 0.5.0 
set-syntax 0.3.2 
show-ideographic-space 1.0.2 
sort-lines 0.14.0 
split-diff 1.2.0 
Stylus 3.1.0 
tabs-to-spaces 1.0.3 
tag 0.4.0 
trailing-spaces 0.4.0 
uwsc 0.0.0 
vim-mode 0.66.0 
vim-surround 0.8.1 
web-view 3.0.0 
lee-elenbaas commented 7 years ago

I was able to reproduce it on mac - by attempting to drag on the timeline window

dflock commented 7 years ago

I get this too. It's happening to me when I've used git timeline, viewed a diff, then closed the diff & timeline. Then, after that, whenever I save the file I diffed, I get this error popup.

Closing the file & re-opening it allows me to save it again without seeing this message.

c0debreaker commented 7 years ago

I started getting this today. I never had issues with this plugin before.

EntropyWorks commented 7 years ago

I am also now seeing this. I only recently installed git-time-machine.

TypeError: Cannot read property 'clearDiff' of null
    at Object._resumeUpdateDiff (/Users/atlas/.atom/packages/git-time-machine/node_modules/split-diff/lib/split-diff.coffee:244:14)
    at /Users/atlas/.atom/packages/git-time-machine/node_modules/split-diff/lib/split-diff.coffee:230:8
    at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/buffered-process.js:177:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:543:20)
SpeedrunnerG55 commented 7 years ago

I get this issue whenever I type or delete anything. [Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.15.0 x64 Electron: 1.3.13 OS: Ubuntu 16.04.2 Thrown From: git-time-machine package 1.5.6

Stack Trace

Uncaught TypeError: Cannot read property 'clearDiff' of null

At /home/speed/.atom/packages/git-time-machine/node_modules/split-diff/lib/split-diff.coffee:244

TypeError: Cannot read property 'clearDiff' of null
    at Object._resumeUpdateDiff (/packages/git-time-machine/node_modules/split-diff/lib/split-diff.coffee:244:14)
    at /packages/git-time-machine/node_modules/split-diff/lib/split-diff.coffee:230:8
    at /app.asar/src/buffered-process.js:196:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:543:20)

Commands

  2x -9:11.5.0 core:confirm (input.hidden-input)
     -7:29 core:paste (div.line)
     -7:02.5.0 git-time-machine:toggle (a.inline-block)
     -6:55.5.0 pane:reopen-closed-item (li.texteditor.tab.sortable.active.right-clicked)
     -6:26.5.0 split-diff:copy-to-right (atom-workspace.workspace.scrollbars-visible-always.theme-base16-tomorrow-dark-theme.theme-one-dark-ui)
     -6:25.7.0 split-diff:copy-to-left (atom-workspace.workspace.scrollbars-visible-always.theme-base16-tomorrow-dark-theme.theme-one-dark-ui)
  2x -6:15.6.0 split-diff:ignore-whitespace (atom-workspace.workspace.scrollbars-visible-always.theme-base16-tomorrow-dark-theme.theme-one-dark-ui)
     -6:07.7.0 git-time-machine:toggle (atom-workspace.workspace.scrollbars-visible-always.theme-base16-tomorrow-dark-theme.theme-one-dark-ui)
  7x -5:00.6.0 core:backspace (input.hidden-input)
     -2:46.6.0 core:select-all (input.hidden-input)
     -2:44.9.0 core:backspace (input.hidden-input)
     -2:42.2.0 core:confirm (input.hidden-input)
 12x -2:24.7.0 core:backspace (input.hidden-input)
     -2:07.1.0 core:confirm (input.hidden-input)
     -2:00.1.0 editor:newline (input.hidden-input)
  3x -1:55.5.0 core:backspace (input.hidden-input)

Non-Core Packages

atom-clock 0.1.6 
auto-indent 0.5.0 
busy-signal 1.3.0 
file-icons 2.1.1 
git-log 0.4.1 
git-plus 7.3.3 
git-time-machine 1.5.6 
gpp-compiler 3.0.7 
intentions 1.1.2 
linter 2.1.2 
linter-gcc 0.7.1 
linter-ui-default 1.2.1 
linter-write-good 0.8.0 
minimap 4.26.8 
minimap-bookmarks 0.4.2 
minimap-cursorline 0.2.0 
minimap-find-and-replace 4.5.2 
minimap-git-diff 4.3.1 
minimap-highlight-selected 4.5.0 
minimap-linter 2.0.0 
minimap-selection 4.4.0 
minimap-split-diff 0.3.7 
split-diff 1.2.1 
tree-view-git-status 1.3.1 
wakatime 6.0.13 
littlebee commented 7 years ago

fixed in 1.5.7