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

Problems with :wqa #76

Open
felipejoribeiro opened this issue Mar 5, 2021 · 5 comments
Open

Problems with :wqa #76

felipejoribeiro opened this issue Mar 5, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@felipejoribeiro
Copy link

felipejoribeiro commented Mar 5, 2021

  • nvim --version: NVIM v0.5.0
  • Operating system/version: Arch Linux x86_64, 5.10.19-1-lts
  • nvim +'checkhealth rnvimr':
health#rnvimr#check
========================================================================
## OS
  - OK: Name: Linux

## Ranger
  - OK: Version: ranger 1.9.3

## Python
  - OK: Version: 3.9.2 (default, Feb 20 2021, 18:40:11) [GCC 10.2.0]

## Pynvim
  - OK: Version: 0.4.2

## Ueberzug (optional)
  - OK: Ueberzug is ready

## RPC
  - OK: RPC echo: Neovim send "Give me five!" and receive "Give me five!"

Describe the bug
When the ranger file explorer is used in a vim session, it becomes impossible to use the command :wqa.

To Reproduce using nvim -u mini.vim

Example:
cat mini.vim

" use your plugin manager, here is `vim-plug`
call plug#begin('~/.config/nvim/plugged')
Plug 'kevinhwang91/rnvimr'
let g:rnvimr_vanilla = 1
tnoremap <silent> <M-i> <C-\><C-n>:RnvimrResize<CR>
nnoremap <silent> <M-o> :RnvimrToggle<CR>
tnoremap <silent> <M-o> <C-\><C-n>:RnvimrToggle<CR>
call plug#end()

Steps to reproduce the behavior:

  1. Just fire the ranger instance with <M-o>.
  2. Close the ranger instance with q.
  3. Try to quit nvim with the command :wqa

Expected behavior
Leave vim with alteration in all buffers saved as usual.

Screenshots
Follows the error menssage when trying to quit the program with :wqa :

image

Additional context
The error in plain text:

E948: Job still running
E676: No matching autocommands for acwrite buffer
Press ENTER or type command to continue

Thank you for the awesome plugin. Hope this info may help somehow

@kevinhwang91
Copy link
Owner

kevinhwang91 commented Mar 5, 2021

Thanks for your feedback, I can reproduce the issue in nvim-0.5 but not in the stable version. I think it's the upstream's bug.

You can also reproduce it by nvim +'terminal' +'new' +'wqa'. I will report this issue to upstream latter:)

edit: neovim/neovim#14061

@kevinhwang91 kevinhwang91 added the bug Something isn't working label Mar 5, 2021
@felipejoribeiro
Copy link
Author

I see. Well noted! Thank you. For now i will save each buffer individually and quit all with just :qa as it still works.

@Rimann91
Copy link

Just wanted to report that this is still an issue

@ls-devs
Copy link

ls-devs commented Jul 7, 2023

Yep, still an issue even today, should we wait for neovim to patch this or can we do something ?

@Penaz91
Copy link

Penaz91 commented Aug 14, 2023

I ran into the same issue using :xa, I mitigated the issue with the following line added in my init.lua:

vim.cmd[[cabbrev xa wa\|qa]]

It is extremely crude and I don't know which kind of side effects it could have, but I thought this could be a workaround of sorts. I haven't found any issues with it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants