flycheck / flycheck-inline

Display Flycheck errors inline
GNU General Public License v3.0
137 stars 10 forks source link

Inline errors stop showing after some time #12

Open tgolsson opened 5 years ago

tgolsson commented 5 years ago

Hi,

I've been using flycheck-inline for a few weeks, without issues on Windows. However, this week I started using Ubuntu (18.04) as my primary environment and have been having issues with the inline messages disappearing after a while. I primarily use this in Rust, so I cannot say whether it shows up in other modes.

This is what I know so far:

Unfortunately, I've not been able to find out more yet, but I figured I'd post while I continue investigating in case someone else has any ideas or thoughts.

fmdkdd commented 5 years ago

Thanks for the report. The fact that you have the issue on Ubuntu and not on Windows is suspicious.

When that happens to you, you could try stepping through functions in order to determine what exactly is not working. If flycheck is working, then you still have errors and overlays. flycheck-inline just changes flycheck-display-errors-function and uses overlays for displaying the errors inline. Finding out where this goes wrong could be helpful.

Of course, reproduction steps would be best.

Keep us posted!

tgolsson commented 5 years ago

As a small update to this issue, I've done some more testing and while I haven't got a reliable reproduction yet I've found some more details.

fmdkdd commented 5 years ago

Large screen movements seem to help with resolving the error state in combination with the above two tricks Specifically, it feels like moving the error line off the visible area and then back again has a high success rate.

What desktop environment are you using? The default Ubuntu one?

tgolsson commented 5 years ago

I'm using a very standard i3 as my window manager, no desktop environment.

fmdkdd commented 5 years ago

Hmm, I'm also using i3, I've had a bug in Eclipse where the cursor disappears, and the only way to get it back is to move the mouse out of the window and back in. I never encountered this issue with Unity.

With Emacs under i3 I've got flickering which is resolved when toggling fullscreen on and off just once. But I never encountered the inline errors disappearing by themselves.

It might be worth trying out another window manager.