Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With show_panel_on_save panel continues to reopen when results fly in even if the user closed the panel inbetween #1623

Open
kaste opened this issue Jun 27, 2019 · 1 comment · Fixed by #1673

Comments

@kaste
Copy link
Contributor

kaste commented Jun 27, 2019

With show_panel_on_save and multiple linters running on the same view. The panel opens automatically as soon as 'negative' results fly in which works as intended.

If you now immediately close the panel, slow linters from the same "sweep/trigger" still re-open the panel. We must respect the decision the user made ("Not now, go away").

@kaste kaste added the bug label Jun 27, 2019
@braver
Copy link
Member

braver commented Jul 16, 2019

So, when the user closes the panel, it should stay closed until the buffer changes, or when the user switches views... I.e. until a new sweep. Shouldn’t be too hard to figure out I think.

@kaste kaste added this to the next milestone Oct 21, 2019
kaste added a commit that referenced this issue Nov 11, 2019
Generally, we can only apply such broad cache layers if the render
functions are "pure", i.e. only draw the highlights if we actually
have different errors from before, otherwise they're already in place.

This breaks for the highlights often because of #1617 or rather the
underlying sublimehq/sublime_text#2877

I.e. whenever Sublime invalidates all drawn regions (usually because a
file gets reloaded), we can retrigger a lint but still get the same
results as before. In that case we *need* to draw because all regions
are actual dangles but the cache would prevent this. Basically our
error store and the view state are out-of-sync. This is solvable
if we can solve #1617.

For the panel, the cache is just not applicable at all. The intention
was to solve #1623 "for free" in a pragmatic way. But that's just not
the case, and actually we're breaking the `show_panel_on_save` feature.

The usage in `status_bar_view` was never important performance wise
so we can, for now, just revert the whole thing.

Partially reverts 816904c
@kaste kaste reopened this Nov 11, 2019
@kaste kaste added enhancement and removed bug labels Nov 11, 2019
@kaste kaste removed this from the 4.13.2 milestone Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants