hotpxl / company-irony-c-headers

Company mode backend for C/C++ header files with Irony
GNU General Public License v3.0
30 stars 3 forks source link

Dosen't completes system headers #8

Closed agauniyal closed 9 years ago

agauniyal commented 9 years ago

Is able to show completion for projects based header files (#include "someheader.h") but fails to show anything on #include < .

hotpxl commented 9 years ago

Interesting. Could you Meta + : and run (company-irony-c-headers-reload-compiler-output) to reload compiler options. If this does not fix, could you Meta + : and run (company-irony-c-headers--search-paths) and post the result here?

agauniyal commented 9 years ago

I ran company-irony-c-headers-reload-compiler-output & waited for a sec or 2 and it started completing headers. Well maybe it was already completing but I have to wait for atleast 2 seconds to let it show completion. ie. type #include <io ... wait for approx 2 secs & then it shows those completion.

hotpxl commented 9 years ago

This could happen for the first time, because it needs to wait for the compiler to parse command line options and calculate a set of include paths.

agauniyal commented 9 years ago

Yup and I'm satisfied :+1: Thanks.

silgon commented 9 years ago

Same problem here, but when I type company-irony-c-headers-reload-compiler-output, this message appears apply: Searching for program: no such file or directory, clang++. So I'm not able to see the headers. Can I have some help?

hotpxl commented 9 years ago

@silgon Probably you have a different executable for clang++. You can set company-irony-c-headers--compiler-executable to the one you have.

silgon commented 8 years ago

Thanks. I had clang-3.5 installed which had not the clang++ command. Sorry, my bad.