Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Vim jiggling around when gutter is filled with warnings #875

Closed
oblitum opened this Issue · 6 comments

2 participants

@oblitum
Collaborator

I'm experiencing Vim jiggling when there's a warning being shown in the gutter and I leave it there while I keep coding. Sometimes, on CursorHold for example, but I'm not sure exactly which events triggers it, it may be dependent on the kind of source code too. It's like the gutter closes and comes back with the same warnings very fastly.

This video reproduces the issue once, around 8s-11s. For viewing please download, framerate of online viewer is not enough.

@oblitum
Collaborator

I dunno how this was programmed but it looks like it could be fixed with some delay added to not close the gutter while retrieving new diagnostics, but I'm not sure, it looks like a refresh, after erasing all warnings, so the gutter closes, and then filling it again, it shows up in a blink.

@oblitum
Collaborator

Also, this is in the GUI.

@Valloric
Owner

YCM clears all the current diagnostic before setting the new ones, even when the new diags are the same as the previous ones. This might be what's causing your problem. Unfortunately this is the only way to do this without invoking way more horrible flickering. See #887 for details.

BTW I don't see the issue in the video you linked.

@Valloric Valloric closed this
@oblitum
Collaborator

@Valloric The video must be downloaded, online viewer has a lower framerate. It blinks at 8s-11s as I said, it's subtle.

@oblitum
Collaborator

@Valloric A suggestion I make, which I've also applied in my fork which I'm using to mess with parameter completion, is to lower the events diagnostics are triggered, I think taking care of this would reduce noise a lot, for example, even when popup completion menu is open and I click tab to select an option, on each tab, YCM triggers diagnostics. It's unnecessary since obviously to code is not yet in a state to be compiled without errors.

@Valloric
Owner

@Valloric The video must be downloaded, online viewer has a lower framerate. It blinks at 8s-11s as I said, it's subtle.

Downloaded and saw it. I'm pretty sure it's caused by the re-adding of diagnostics. The bug is in Vim, this flicker shouldn't happen. Thankfully, it only happens once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.