Skip to content
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

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

Closed
jkvargas opened this issue Sep 2, 2016 · 7 comments
Closed

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

jkvargas opened this issue Sep 2, 2016 · 7 comments
Labels
Projects

Comments

@jkvargas
Copy link

jkvargas commented Sep 2, 2016

Description

#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 Emacs
    .clang_complete contains -I/usr/local/VulkanSDK/1.0.21.1/x86_64/include

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

  • OS: gnu/linux
  • Emacs: 24.5.1
  • Spacemacs: 0.105.22
  • Spacemacs branch: master (rev. 9f9faa4)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(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
Copy link
Collaborator

TheBB commented Sep 2, 2016

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
Copy link
Author

jkvargas commented Sep 2, 2016

spacemacs

yes, if I add the value manually it works.

@TheBB
Copy link
Collaborator

TheBB commented Sep 2, 2016

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

@TheBB TheBB changed the title Missing autocomplete popup for c/c++ mode with clang_complete Missing autocomplete popup for c/c++ mode with clang_complete Sep 2, 2016
@jkvargas
Copy link
Author

jkvargas commented Sep 3, 2016

dotclangcomplete.txt just rename the file as .clang_complete

@TheBB
Copy link
Collaborator

TheBB commented Sep 7, 2016

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

@delaanthonio
Copy link
Contributor

@jkvargas Do you still have this issue?

@github-actions
Copy link

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!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Bugs
Not reproduced
Development

No branches or pull requests

3 participants