FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.44k stars 637 forks source link

SyntaxError: Unexpected end of input #174

Closed mitchell-johnson closed 11 years ago

mitchell-johnson commented 11 years ago

I have just updated to the latest version of ungit now whenever I open my browser window ungit crashes with:

undefined:0

^ SyntaxError: Unexpected end of input at Object.parse (native) at /usr/lib/node_modules/ungit/source/server.js:143:30 at fs.js:266:14 at Object.oncomplete (fs.js:107:15) ungit can't start, see logs for more information.

using Ubuntu 13.04, node.js 0.10 (both of these have not changed) after running: npm remove ungit then : npm install -g ungit I receive the same error.

Thanks Mitchell

FredrikNoren commented 11 years ago

Sounds like your config file is corrupt (should probably be a more user friendly warning for that though). It needs to be valid json, try validating with http://jsonlint.com/

mitchell-johnson commented 11 years ago

Thanks for the reply. I will look on Monday. I have not manually modified the configuration file at all so I will just try to delete it and see how we go.

FredrikNoren commented 11 years ago

@elwesties I just pushed a new version (0.1.8) which might solve this problem (commit referenced above), do you mind trying it out when you can?

mitchell-johnson commented 11 years ago

I updated and the issue remained. However deleting the config file has fixed the problem. Thank you