Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upcrash with empty cache files #673
Comments
This comment has been minimized.
This comment has been minimized.
vzqzac
commented
Dec 9, 2016
|
I have the same issue, I came across it by adding a random line just to keep standard checking all files, but yes, I also think is an issue |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the report. This looks like an ESLint issue, so I've re-opened it on the ESLint issue tracker. eslint/eslint#7748 @alvaropinot I really appreciate you sharing the stack trace. We got another report of this error before, but it didn't have enough detail to pin it down. Thanks! |
This comment has been minimized.
This comment has been minimized.
|
@feross thank you for taking a look into this :) If you need any help just let me know :D |
This comment has been minimized.
This comment has been minimized.
|
This issue was fixed in ESLint, so you shouldn't experience it anymore. |
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
alvaropinot commentedNov 2, 2016
•
edited
Suddenly standard started giving the attached below output. After spending some time searching through my code and reducing it to 0 files I was still getting the same error. Later I've found that there is no try/catch trying to parse back the JSON from the cache files found at
.standard-cache, so when the file is empty it crashes. The problem seems to be at flat-cache package or its usage, but I thought you may know more about it. I'll try to take a deeper look, anyway.What do you think about trying to delete cache files when this kind of error occurs?
Hope I can help in any manner :)