-
Notifications
You must be signed in to change notification settings - Fork 39
Unexpected end of input #238
Comments
Yes, I get a default value of |
I'm also seeing this problem. This is on windows 7, but only when I launch using the Atom desktop shortcut. If I launch atom at the command line everything works fine. When I launch with the shortcut, I can step in and see the exec call here timing out. But it times out after the await returns, so this line ends up trying to parse an empty string. The command and arguments to the exec call look correct in both environments. I'm not too familiar with how exec works in atom, but let me know if I can try anything else or provide more info. |
Same issue with Windows 10. Each lint fails with
That's the parsed = JSON.parse(result) |
An update: |
I had this problem today and it was the .jshintrc was empty. After adding some options went smoothly. |
@rodrigo-martinezd Tried, didn't work for me... |
It seems to be a problem with Atom versions over 1.7 on windows. Myself and a coworker had the issue with version 1.7.0-beta5 and I reverted back to the version I had before, which is 1.5.0-beta3 and my coworker tried 1.6.2 without issue. |
I'm on Windows 10. Atom just updated to 1.7 and I'm seeing this issue when I edit JS files. I have a valid Tracking it down it looks like |
I've stepped as far down as Atom's BufferedProcess, for some reason only for |
@craigbuckler pointed out something explicitly over in #257 which was mentioned off hand here but I didn't catch: It looks like this might have started with the v1.7.0 update. |
Just an update, we've confirmed that this must be a bug in the internal version of Electron inside Atom. If you replace |
Filed atom/atom#11471 as it looks to be the Electron bundled within Atom that is the root cause of this. |
Based on your comment about process.execPath,
It seems to fix it, however as I am very unfamiliar with atom in particular and node in general I am worried about potential impacts (because the call is asynchronous and is using await, the process.execPath is not restored immediately. Do you think that is a workable fix while waiting for the atom bug to be resolved? |
You might be safer installing v1.6.2 and disabling auto updates, as I don't know all the impacts of overwriting that either. You would need to watch for updates to Atom though to catch when this gets fixed on your own after doing that. |
thanks for the reply |
Atom v1.7.1 (And v1.8.0-beta1) has been released which should fix this. If you are still having issues please re-open this or file a new issue. |
I'm getting this error when linter tries to parse a file.
#115 might be related, but that was on Mac, I'm running Windows 10, and path seems to be set correctly:
I tried to debug this and with my limited knowledge of node I gathered this:
this.executablePath
in call toHelpers.execNode
doesn't seem to be set at all, which results in emptyresult
. But even replacingthis.executablePath
with the exact location of JSHint doesn't seem to work as well andresult
is still empty.The text was updated successfully, but these errors were encountered: