josa42 / atom-blame

Show git blame as a gutter in Atom editor
https://atom.io/packages/blame
MIT License
22 stars 18 forks source link

Blame crased when lines are added or modified in SVN Project #43

Open gokuhs opened 6 years ago

gokuhs commented 6 years ago

In a SVN project:

  1. Open an a file
  2. Add / remove one or more lines
  3. Toggle Blame

Atom: 1.23.3 x64 Electron: 1.6.15 OS: Windows 10 Thrown From: blame package 1.0.1

Stack Trace

Uncaught TypeError: Cannot read property '0' of undefined

At events.js:160

TypeError: Cannot read property '0' of undefined
    at /packages/blame/node_modules/blamer/src/vcs/svn.js:24:31
    at Array.forEach (native)
    at /packages/blame/node_modules/blamer/src/vcs/svn.js:22:40
    at /packages/blame/node_modules/xml2js/lib/parser.js:303:18)
    at emitOne (events.js:96:13)
    at Parser.emit (events.js:188:7)
    at SAXParser.onclosetag (/packages/blame/node_modules/xml2js/lib/parser.js:261:26)
    at emit (/packages/blame/node_modules/sax/lib/sax.js:624:35)
    at emitNode (/packages/blame/node_modules/sax/lib/sax.js:629:5)
    at closeTag (/packages/blame/node_modules/sax/lib/sax.js:889:7)
    at SAXParser.write (/packages/blame/node_modules/sax/lib/sax.js:1436:13)
    at Parser.exports.Parser.Parser.parseString (/packages/blame/node_modules/xml2js/lib/parser.js:322:31)
    at Parser.parseString (/packages/blame/node_modules/xml2js/lib/parser.js:5:59)
    at Object.exports.parseString (/packages/blame/node_modules/xml2js/lib/parser.js:354:19)
    at parseResult (/packages/blame/node_modules/blamer/src/vcs/svn.js:13:12)
    at /packages/blame/node_modules/blamer/src/vcs/svn.js:48:9
    at ChildProcess.exithandler (child_process.js:214:7)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:885:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

Commands

     -6:41.7.0 intentions:highlight (input.hidden-input)
     -6:41.5.0 core:paste (input.hidden-input)
     -6:40.8.0 core:save (input.hidden-input)

Non-Core Packages

atom-beautify 0.30.9 
atom-typescript 12.1.1 
atom-underscore 0.1.3 
autocomplete-modules 1.10.0 
blame 1.0.1 
busy-signal 1.4.3 
editorconfig 2.2.2 
file-icons 2.1.16 
goto-definition 1.3.4 
intentions 1.1.5 
linter 2.2.0 
linter-eslint 8.4.1 
linter-sass-lint 1.8.3 
linter-ui-default 1.6.10 
minimap 4.29.7 
svn 0.0.13 
tortoise-svn 0.5.1