How to clear the cache of files?
I did some batch-renaming of files outside Atom, and now the "Go to word" command takes me to old file that doesn't exist any more.
I've tried restarting Atom, but didn't help.
I know that import-js has some sort of cache, which I think is the culprit in here. But I don't have import-js installed separately from Atom. How do I find out the location of the cache to clear it?
rm $(importjs cachepath)
Or run importjs cachepath to get a path to the cache, then delete that file some other way.
Are you running Watchman? I think the watchman integration would have picked up the name changes.
Thanks! The removal of cache file worked. Though I needed to install command-line import-js in addition to the Atom plugin just to find out the cache path. Would be nice if there were some way inside Atom to clear the cache. Though yeah, even better would be to not need such reset at all.
I do have watchman installed. Should I run it somehow explicitly or does the import-js run it for me? The README tells me nothing about running it.
It might have been that I performed the file rename while Atom was closed. Would it also notice the change in that case?
It might have been that I performed the file rename while Atom was closed. Would it also notice the change in that case?
I believe it should pick up the change, but it could depend on the watchman config. If you set logLevel: 'debug' in import-js config and tail the logfile (tail -f $(importjs logpath)) you might be able to debug what happened.
I do have watchman installed. Should I run it somehow explicitly or does the import-js run it for me? The README tells me nothing about running it.
No, just having it installed should be enough. The main import-js readme mentions it, but I get how this project is mostly disconnected from the core.
Would be nice if there were some way inside Atom to clear the cache.
Agreed, this would be a good enhancement. I don't know much about how Atom plugins could surface something like this to the user. If you have ideas, I'd love to review a PR!
Thanks for the information.