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

irony mode not completing on stl object members (clang 8 ) #555

Open
alapachianbulbus opened this issue Jan 23, 2020 · 0 comments
Open

irony mode not completing on stl object members (clang 8 ) #555

alapachianbulbus opened this issue Jan 23, 2020 · 0 comments

Comments

@alapachianbulbus
Copy link

alapachianbulbus commented Jan 23, 2020

I have c++ completion working with libclang (v 8.0) in vim. I am trying to get irony mode working in emacs. It doesn't work fully. It does completion on local classes and most class member functions but not all but it definitely will not pick up on most (although it some work) stl object member functions. It does suggest stl classes or stl globals like std::cout but if I do std::string s; it will not complete any members on "s." .

For some reason also it only reads a .clang_complete file and will not parse a compile_commands.json file. Below is my json file.

Is there some diagnostics I can turn on to find out why it is failing ? I've included the server log below.

"directory": "/home/xxxx/dev",
"command": "/apps/opt/gcc/5.4.0_01/bin/gcc -I/apps/opt/gcc/5.4.0_01/include/c++/5.4.0 -I/apps/opt/gcc/5.4.0_01/include/c++/5.4.0/x86_64-suse-linux-gnu -std=gnu++14 -o CMakeFiles/testB.dir/test.cpp.o -c /home/xxx/dev/test.cpp",
"file": "/home/xxxx/dev/test.cpp"

from the irony server logs I can see that irony is passing the correct stl inlcude paths. This is puzzling - as it all works with vim using clang_complete plugin and the same libclang.

execute: Command{action=Command::Complete, file='/homexxx/dev/test.cpp', unsavedFile='', dir='', line=198, column=19, prefix='', caseStyle='exact', flags=['-x', 'c++', '-working-directory', '/home/xx/dev/', '-DDEBUG', '-I/apps/opt/gcc/5.4.0_01/include/c++/5.4.0', '-I/apps/opt/gcc/5.4.0_01/include/c++/5.4.0/x86_64-suse-linux-gnu', '-std=c++14'], opt=off}
execute: Command{action=Command::Candidates, file='', unsavedFile='', dir='', line=0, column=0, prefix='', caseStyle='exact', flags=[], opt=off}

@alapachianbulbus alapachianbulbus changed the title irony mode not completing on stl object members irony mode not completing on stl object members (clang 8 ) Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant