Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Option to run Flycheck after buffer switch #1297
I'd like to have Flycheck run after a short delay (specifically, after
The current behavior is that syntax checks occur only after modifications to the buffer, or after a save, as per the default setting of
However, it often happens that I change some configuration externally, or I make modifications in another file. Then, when I switch back to an old buffer that is supposed to now have errors in it, Flycheck does not run another check. I have to manually edit the buffer or save it. My current workflow is to switch to a buffer, insert a character, delete it, and save—after that, Flycheck will show the errors. And I feel really dumb every time I do that.
I'd propose for a new value
Thanks for the idea. I like it!
The only downside I'm seeing is that with this new setting, a syntax check would begin every time you switch to this buffer, even if the buffer hasn't changed, right?
But what if your configuration file hasn't changed either? You don't need to run the syntax check, but Flycheck cannot know because it has no knowledge of the dependencies between your buffers.
It looks like the correct solution here is to make Flycheck project-aware, which is out of scope for now.
However, your suggestion is a nice compromise to that. We don't need to know the dependencies, we just run the syntax check regardless.
I'd be wary about making this new option part of the default value for