-
Notifications
You must be signed in to change notification settings - Fork 36
Catch JSON errors issue #120
Comments
Yep, this is a known bug on OSX that |
sorry, what do you mean "run it from CLI to make it work"? |
|
that helps, indeed.. but doesn't sound like a solution. Could be the reason that |
could you hard-code a cwd and report if it works? :) |
I'm seeing this same error. It goes away if I run from the command line but then is seems the jsxhint is broken. |
@steelbrain tried and it works fine with |
@steelbrain sorry, was to fast. nope, |
I'm getting the same error message as well on OSX. I agree with @alexbeletsky that opening from the command line isn't a great solution. I'd be happy to help test proposed solutions. |
can you guys post the contents of |
now what's the result of |
Now that's what the problem is :D |
There is such commit for handling parsing errors, it makes total sense, but after upgrade it put my Atom in a mess.
While I open any
.js
file, I see error notification "Invalid Result recieved from JSHint".The reason is
JSON.parse()
is not able to handle empty strings and throws an exception. I'm not sure, but maybejshint
previosly returned{}
or[]
, but not it's just empty""
.There should be a check for empty string and if so, skip the rest of processing. If you are fine with that I can submit a PR.
PS. there is a typo in
recieved
=>received
.. I'm always doing that mistake, as well :)The text was updated successfully, but these errors were encountered: