jakesankey / git-history

View previous versions of any file known to git.
https://atom.io/packages/git-history
MIT License
28 stars 10 forks source link

Uncaught SyntaxError: Unexpected token #47

Open sengeezer opened 6 years ago

sengeezer commented 6 years ago

[Enter steps to reproduce:]

  1. Open JS file from project folder
  2. Select section of file
  3. Go to Packages > Git History > Show History

Atom: 1.21.0 x64 Electron: 1.6.9 OS: Mac OS X 10.12.6 Thrown From: git-history package 3.3.0

Stack Trace

Uncaught SyntaxError: Unexpected token  in JSON at position 162

At file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.html:1

SyntaxError: Unexpected token  in JSON at position 162
    at JSON.parse (<anonymous>)
    at stdout (/packages/git-history/lib/git-history-view.coffee:47:13)
    at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:212:17)
    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:551:20)

Commands

     -1:16.2.0 core:confirm (input.hidden-input)
     -0:18.6.0 git-history:show-file-history (input.hidden-input)

Non-Core Packages

atom-beautify 0.30.5 
atom-handlebars 1.3.0 
atom-language-velocity 1.1.0 
busy-signal 1.4.3 
git-history 3.3.0 
intentions 1.1.5 
language-dustjs 0.3.0 
language-ejs 0.4.0 
language-impex 1.0.1 
language-jsx 0.1.1 
language-patch 1.2.0 
linter 2.2.0 
linter-eslint 8.3.2 
linter-handlebars 2.5.0 
linter-ui-default 1.6.10 
platformio-ide-terminal 2.7.0 
pretty-json 1.6.4