Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

[Feature Request] Command to manually kill and restart worker #1033

Open
dead-claudia opened this issue Oct 1, 2017 · 3 comments
Open

[Feature Request] Command to manually kill and restart worker #1033

dead-claudia opened this issue Oct 1, 2017 · 3 comments

Comments

@dead-claudia
Copy link

It'd be hugely convenient when working on rules, especially local ones via eslint-plugin-local or eslint-plugin-rulesdir, or newly reinstalled ones, to be able to kill and restart the worker process manually. That way, the module cache could be cleared and repopulated, which keeps me from having to restart Atom entirely over thrown ESLint errors.

@skylize
Copy link
Contributor

skylize commented May 8, 2018

You can clear the module cache by checking then unchecking Disable FileSystem Cache in the Settings.

Not as convenient as a Command, and I'm not 100% sure it will work for your case of "thrown ESLint Errors", because those thrown Errors could be fatal.

Additionally you can reload the Electron browser window with command Window: Reload, which is not exactly instant, but is much nicer for development than a full restart.

@Arcanemagus
Copy link
Member

That setting only clears the cache of searched paths, it has nothing to do with clearing things out of the module cache once they are in there. It's only useful in situations where your file tree changes often.

Reloading the Atom window or deactivating/reactivating the package is the only current way to restart the worker process.

@dead-claudia
Copy link
Author

BTW, I could still use this (kind of).

And @skylize, reloading the window repeatedly gets old real fast. You lose things like undo/redo, etc. when you do that, for example. (And when diagnosing problems with eslint-plugin-local rules, etc., that can be a real PITA.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants