Skip to content
This repository was archived by the owner on Dec 24, 2020. It is now read-only.
This repository was archived by the owner on Dec 24, 2020. It is now read-only.

coc formatter deleting lines when formatting sometimes #313

@himat

Description

@himat

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions