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

nvim --headless segfaults if you poke it #52

Open
Julian opened this issue Jan 16, 2021 · 3 comments
Open

nvim --headless segfaults if you poke it #52

Julian opened this issue Jan 16, 2021 · 3 comments

Comments

@Julian
Copy link

Julian commented Jan 16, 2021

The recommended way plenary has for running tests (e.g. nvim --headless --noplugin -u scripts/minimal_init.vim -c "PlenaryBustedDirectory lua/tests/ { minimal_init = './scripts/minimal_init.vim' }") makes it easy I think to run into neovim/neovim#12432 or neovim/neovim#11362 (which I ran into randomly just now after having used plenary for a day or two).

The fix in one of those two issues (to add set display=lastline) helped stop the segfaulting and showed me my real error, but might be good to add a recommendation to include that in minimal vimrcs to the docs.

@matu3ba
Copy link
Contributor

matu3ba commented Oct 3, 2021

@Julian Is there a reason why you did not create a PR yet to minimal.vim ?

Issue 11362 sounds like it requires logging or tracing.

@Julian
Copy link
Author

Julian commented Oct 3, 2021

What are you referring to by minimal.vim? The thing here in the scripts dir? That wouldn't have helped me, I don't use that when running tests with plenary, I have my own minimal vimrc. I don't think the docs even mention that file, but I don't recall.

@matu3ba
Copy link
Contributor

matu3ba commented Oct 6, 2021

Yes, https://github.com/nvim-lua/plenary.nvim/blob/master/tests/minimal_init.vim
You can add it as comment, since that is the place everybody will look to adapt their minimal vimrc.

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

2 participants