syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

Missing autocomplete popup for c/c++ mode with clang_complete #6999

Closed jkvargas closed 4 years ago

jkvargas commented 8 years ago

Description

https://github.com/syl20bnr/spacemacs/issues/5122

seems that this case is happening with me, i do have clang 3.8 installed and i dont have autocomplete for some headers given by my .clang_complete file.

Reproduction guide

start a cpp file, include vulkan/vulkan.h, no popup when you write the function name.

Observed behaviour: hitting SPC h d v, looking into company-clang-arguments there is only:

company-clang-arguments is a variable defined in `company-clang.el'. Its value is ("-std=c++11") Original value was nil

no popup when you start to write the name of a method/function...

Expected behaviour: a popup for autocomplete.

System Info

(auto-completion emacs-lisp gtags
                 (c-c   :variables c-c  -default-mode-for-headers 'c  -mode c-c  -enable-clang-support t)
                 git org semantic syntax-checking)

Backtrace

BACKTRACE IF RELEVANT
TheBB commented 8 years ago

Does it work if you manually add in the missing flag after opening the file? IOW is the problem just with reading the .clang_complete file?

jkvargas commented 8 years ago

spacemacs

yes, if I add the value manually it works.

TheBB commented 8 years ago

Okay, can you pastebin the .clang_complete file somewhere so I can try it?

jkvargas commented 8 years ago

dotclangcomplete.txt just rename the file as .clang_complete

TheBB commented 8 years ago

That file works fine for me on both master and develop.

delaanthonio commented 7 years ago

@jkvargas Do you still have this issue?

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!