coc-python icon indicating copy to clipboard operation
coc-python copied to clipboard

Weird diagnostics behavior, seems to be out of sync

Open JRasmusBm opened this issue 4 years ago • 3 comments

Hi!

Thank you so much for this library and all the work you do with CoC. It has really made all my workflows feel so much more modern!

I am experiencing some weird behavior with the diagnostics when using coc-python, and wonder if you have seen something like it before. This is how I experience the problem:

Whenever I make a change in a file and save it the analytics give false errors. They refer to errors that are on other lines or about my variable names being different than how I typed them. The invalid diagnostics remain when I save the file with :w, but go away when I source it again with :e.

Here's a gif showing the problem.

Is this a known issue or am I doing something wrong?

Best Regards

Rasmus

JRasmusBm avatar Mar 23 '20 09:03 JRasmusBm

My coc-settings.json (Confirmed that problem persists with downloadChannel: "stable")

{
  "diagnostic.errorSign": "✗",
  "python.formatting.blackArgs": ["--line-length", "80"],
  "python.formatting.provider": "black",
  "python.analysis.downloadChannel": "beta",
  "python.workspaceSymbols.rebuildOnFileSave": true,
  "python.jediEnabled": false,
  "rust.all_features": true,
  "suggest.autoTrigger": "always",
  "suggest.noselect": false
}

JRasmusBm avatar Mar 23 '20 09:03 JRasmusBm

This occurs in Haskell (both hie and hls) and Rust (coc-rust-analyzer) too. In Rust, it happens almost always when I save file. Doing :e fixes it till the next :w.

itsfarseen avatar Jul 14 '20 08:07 itsfarseen

Just did a :PlugUpdate, problem seem to be gone in my Rust project.

itsfarseen avatar Jul 14 '20 08:07 itsfarseen