sublime-esformatter icon indicating copy to clipboard operation
sublime-esformatter copied to clipboard

SyntaxError: Unexpected end of input

Open unlight opened this issue 9 years ago • 4 comments
trafficstars

v1.6.5, node v5.3.0, win8-64, sublime3

My javascript is valid. When trying to format sublime throws:

SyntaxError: Unexpected end of input
    at Object.parse (native)
    at D:\Progs\Sublime-Text-3\Data\Packages\EsFormatter\lib\esformatter.js:22131:20
    at Object.<anonymous> (D:\Progs\Sublime-Text-3\Data\Packages\EsFormatter\lib\esformatter.js:22160:3)
    at Module._compile (module.js:398:26)
    at Object.Module._extensions..js (module.js:405:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:430:10)
    at startup (node.js:141:18)
    at node.js:980:3

unlight avatar Feb 16 '16 10:02 unlight

how big is the file?

piuccio avatar Feb 16 '16 15:02 piuccio

It happens with any file. ~ 17 Lines, 805 chars

unlight avatar Feb 16 '16 20:02 unlight

It seems this error is happening while parsing the config settings in JSON.

you might need to double check it.

leobalter avatar Feb 16 '16 22:02 leobalter

I will check. But it was clean install, I didn't do anything with settings.

unlight avatar Feb 16 '16 22:02 unlight