Sarcasm / flycheck-irony

C, C++ and Objective-C support for Flycheck, using Irony Mode
56 stars 10 forks source link

Errors reported the first time a file is opened #23

Open jkaye2012 opened 5 years ago

jkaye2012 commented 5 years ago

Hey there,

I've been experiencing a really minor issue for the past couple of weeks. Whenever I open a fresh instance of Emacs and load a file in my project for the first time, Flycheck reports many errors in the buffer (all related to different things, mainly missing includes etc). Messages indicate that Irony starts and is running properly. If I close and reopen the buffer, or open any other buffer in the project after this, things work fine. So currently my workaround is: open Emacs -> open random file in project, wait for errors -> close buffer and reopen it, everything now works fine for the remainder of the editing session.

Is this something I'm doing wrong? I also do not mind a hook-based workaround if one exists!

Thanks, Jordan