Closed diefans closed 5 years ago
Ooh, interesting!
I wonder if the same kind of update needs to be done to make branch coverage messages work.
A way to test:
sample.py
:def make_even(x):
if x % 2 == 1:
x += 1
return x
:HighlightCoverage 2->4
you should see "Line 2: missing branch to 4" in the bottom area
My old neovim build apparently has no Python support for some reason so I cannot easily test myself.
My old neovim build apparently has no Python support for some reason so I cannot easily test myself.
Ah, I'd cleaned out my ~/.local/python* and forgot to python3 -m pip install --user pynvim
.
I've checked, and the branch coverage is also broken in nvim v0.3.2-1039-gac53536de.
Your suggested fix didn't work for me.
I'm currently playing with NVIM v0.4.0-319-g6cd4ff2ab.
Your suggested fix didn't work for me.
That would be because I cannot tell a -
from a _
.
very nice!
:HighlightCoverageOff
is doing nothing while running:sign unplace <id>
works.I am using neovim, what might be the cause... Neovim's RPC machine is not propagating a change to a list in a
buffer.vars
item back to the core. So placed signs get never stored in the buffer's vars.The following diff fixes the problem: