p00f / cphelper.nvim

Neovim helper for competitive programming. Use https://sr.ht/~p00f/cphelper.nvim instead
MIT License
133 stars 9 forks source link

No write since last change (add ! to override) #19

Closed KoushikSahu closed 1 year ago

KoushikSahu commented 2 years ago

Description:

I have been getting the following error once in a while when I have parsed the problem and left the file in insert mode before continuing to write into the file again.

Error message:

Error executing vim.schedule lua callback: ...nfig/nvim/plugged/cphelper.nvim/lua/cphelper/prepare.lua:62: Vim(edit):E37: No write since last change (add ! to override)
stack traceback:
[C]: in function 'cmd'
...nfig/nvim/plugged/cphelper.nvim/lua/cphelper/prepare.lua:62: in function 'prepare_files'
...nfig/nvim/plugged/cphelper.nvim/lua/cphelper/receive.lua:36: in function <...nfig/nvim/plugged/cphelper.nvim/lua/cphelper/receive.lua:30>

Steps to reproduce:

There is no such particular pattern I found to reproduce this error. Normally I get this error when I leave the file in insert mode and then try to write and save it into the file again.

p00f commented 2 years ago

Does this still happen? If yes, can you post the new error message? The line numbers might have changed

p00f commented 1 year ago

Closing due to no response from author