-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The process doesn't terminate #645
Comments
This is the whole point behind |
@sQVe thank you for reply! I can understand that, it can improve startup/initialization time and as far as I understood this is some kind of caching mechanism. But in other hand I'm not sure if it is normal to have multiple |
Yeah, right now we don't terminate idle daemons, but it's a good idea. Perhaps we can coordinate with @mantoni to see if they'd be interested in having that feature as part of core_d (something like If this doesn't make sense within core_d, we can implement it just for prettierd. |
That is something being requested for It makes sense to put the core functionality into I don't have the time right now to do the leg work, but I'd happily assist, review and integrate. |
I have this workaround, that I've been using for a long while, that you can use until this feature is provided in Start by registering an This is how I've set it up: -- Stop Neovim Daemons.
autocmd('ExitPre', {
group = augroups.StopNeovimDaemons,
callback = function()
vim.fn.jobstart(
vim.fn.expand('$SCRIPTS') .. '/nvim/stop-nvim-daemons.sh',
{ detach = true }
)
end,
}) Next you need to create the This is my script that kill both |
Or you can have a 5 line simple autocmd with a vim.api.nvim_create_autocmd("VimLeavePre", {
callback = function()
vim.fn.jobstart("killall prettierd eslint_d", { detach = true })
end,
}) |
That is not a good idea as it'll kill all instances of prettierd regardless of whether or not it was created by the current instance of the editor. If it works for you, great :D but we can't add it to the readme. |
Yeah I understand, when I need to work on multiple projects at once I don't close separate nvim instances, so it works for me. This is just how I workaround this, maybe it will be useful to someone else :) |
Hi! I'm using prettierd in my neovim config. As formatting I'm using stevearc/conform.nvim. It works great and fast but I recognized that even after exiting neovim and closing terminal I can see
prettierd
process still hanging in system monitoring. I usually jump between multiple projects and for every project there is newprettierd
process which is normal but they all hang in memory after exiting neovim and closing terminal. After switching toprettier
(not prettierd) I can see that processes terminating (as they should) after axiting neovim.P.S. I'm using mac os
The text was updated successfully, but these errors were encountered: