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 in JSON at position 180 #50

Open mahadeb opened 6 years ago

mahadeb commented 6 years ago

[Enter steps to reproduce:]

  1. Opened a file of php code
  2. ctr + alt + h or Go to Package > git history > show file history

Atom: 1.24.0 x64 Electron: 1.6.16 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 180

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

SyntaxError: Unexpected token    in JSON at position 180
    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:27.4.0 welcome:show (atom-pane.pane.active)
     -1:08.7.0 git-history:show-file-history (input.hidden-input)
     -0:19.1.0 find-and-replace:clear-history (input.hidden-input)
     -0:15 git-history:show-file-history (input.hidden-input)

Non-Core Packages

atom-beautify 0.30.9 
git-history 3.3.0 
hyperclick 0.1.5 
js-hyperclick 1.13.0 
php-cs-fixer 4.1.1 
php-hyperclick 1.2.1