Skip to content
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

[Question] Subprocess with --clean flag #430

Open
KostkaBrukowa opened this issue Jul 3, 2024 · 0 comments
Open

[Question] Subprocess with --clean flag #430

KostkaBrukowa opened this issue Jul 3, 2024 · 0 comments

Comments

@KostkaBrukowa
Copy link

Hey!
I've been seeing small issue with session in nvim. Whenever I was opening neotest summary window, the session wasn't saved (it worked normally when neotest summary wasn't opened at all). I've done some digging into the code and here: https://github.com/nvim-neotest/neotest/blob/master/lua/neotest/lib/subprocess.lua#L41 I've stumbled upon this line, when you open new headless nvim instance and I found out, that if I add flag --clean:

  local cmd = { vim.loop.exepath(), "--embed", "--headless", "-n", "--clean" }

my problem disappears (the headless instance might have been overriding my session) and the neotest summary window also loads a bit faster.
I was wondering if there are any possible problems of using --clean flag and why didn't you use it in the first place?

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

No branches or pull requests

1 participant