For some reason, sometimes, the auto formatter is deleting entire functions in my python files!
I save inside vim with :w, and then it auto formats with black, but then sometime a function or class might just be deleted.
It doesn't happen all the time though, just randomly, and I'm unable to reproduce this.
But this is making it very dangerous for me to even use the auto formatter even though it's very helpful.
Here is my .vim/coc-settings.json file
{
eslint.filetypes: [javascript, javascriptreact, typescript, typescriptreact],
coc.preferences.formatOnSaveFiletypes: [python],
python.jediEnabled: false,
python.formatting.provider: black,
python.linting.pylintEnabled: false,
python.linting.mypyEnabled: true,
python.linting.enabled: true
}
Any suggestions on what to do here?