-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
c-c++-mode flycheck loads .clang_complete too late #1258
Comments
@edwintorok Do you still have this bug with the last Spacemacs release? If yes, can you try #2635 and tell us if it works? |
Hi, for me this problem still occurred in latest Spacemacs release, but mentioned commit from #2635 solved the problem. One thing to watch for though ! Still a keybinding to refresh checker arguments would be a nice feature. Now when I'm modifying |
Glad to hear!
Can I ask you to put this directly in the #2635 thread, so it doesn't get forgotten when merged (and you keep the credit for it
Have you try reloading the mode in which you are, like |
On 11/11/2015 08:06 PM, Fabien Dubosson wrote:
I applied the patch from #2635 on top of 0.104.4 with this change mentioned (couldn't cherry-pick cause the filename changed too), and I confirm that it works well now. Note: I had to make sure all the relative paths in -I start with ./ so
'SPC : c-mode' works. |
I've added a comment about it on #2635
yeah, it looks like an error in the code changing relative path to absolute. I also added some info about it in my comment.
it works, thanks |
Just merged and fixed. |
Looks like
flycheck-clang-args
is supposed to be set from.clang_complete
at https://github.com/syl20bnr/spacemacs/blob/master/contrib/lang/c-c%2B%2B/packages.el#L122.But the first time I open a file that doesn't happen, I have to call
clang-complete
, and then disable/re-enable flycheck (or make a modification and save the file) for it to take effect.Would it be possible to invoke this from
flycheck-mode-hook
so that the compilation flags are correct the first time the syntax check is run? Or provide a keybinding to load/refresh these arguments.The text was updated successfully, but these errors were encountered: