[Ubuntu 13.3] CodeCompletion wont work.

CodeLite installation/troubleshooting forum
Moonkis
CodeLite Curious
Posts: 7
Joined: Wed Mar 06, 2013 1:36 am
Genuine User: Yes
IDE Question: C++
Contact:

[Ubuntu 13.3] CodeCompletion wont work.

Post by Moonkis »

I'm no super wizard to Ubuntu, but I followed the instructions of how to add the repository and how to install CodeLite(5.2 as of writing). It works, I can compile and run and make new projects and workspaces but for some reason I can't get the codecompletion to work.

In ctags and clang there are NO included paths, and when I push "Add suggested path" none is added/found. I have clang installed. It also complains about not finding bits/c++config.h

I'm not really sure were to look manually for the included paths or how to get it to work so here I am, hopefully one of you guys know what to do.

PS. If it's at all relevant I have GNOME3 as my shell.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: [Ubuntu 13.3] CodeCompletion wont work.

Post by eranif »

What happens when you type this from the shell:

Code: Select all

g++ -v -x c++ /dev/null -fsyntax-only
It should produce output similar to:

Code: Select all

Using built-in specs.
COLLECT_GCC=/usr/bin/g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.2-2ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) 
COLLECT_GCC_OPTIONS='-v' '-fsyntax-only' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1plus -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE /dev/null -quiet -dumpbase null -mtune=generic -march=x86-64 -auxbase null -version -fsyntax-only -o /dev/null -fstack-protector
GNU C++ (Ubuntu/Linaro 4.7.2-2ubuntu1) version 4.7.2 (x86_64-linux-gnu)
        compiled by GNU C version 4.7.2, GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/4.7
 /usr/include/c++/4.7/x86_64-linux-gnu
 /usr/include/c++/4.7/backward
 /usr/lib/gcc/x86_64-linux-gnu/4.7/include
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/4.7/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
Note that the last part (it starts with "#include <...> search starts here", try to add them manually to the clang include paths and see what happens
Eran
Make sure you have read the HOW TO POST thread
Moonkis
CodeLite Curious
Posts: 7
Joined: Wed Mar 06, 2013 1:36 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: [Ubuntu 13.3] CodeCompletion wont work.

Post by Moonkis »

Code: Select all

Använder inbyggda specifikationer.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.7/lto-wrapper
Mål: i686-linux-gnu
Konfigurerad med: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.3-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --enable-objc-gc --enable-targets=all --with-cloog --enable-cloog-backend=ppl --disable-cloog-version-check --disable-ppl-version-check --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Trådmodell: posix
gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) 
COLLECT_GCC_OPTIONS='-v' '-fsyntax-only' '-shared-libgcc' '-mtune=generic' '-march=i686'
 /usr/lib/gcc/i686-linux-gnu/4.7/cc1plus -quiet -v -imultilib . -imultiarch i386-linux-gnu -D_GNU_SOURCE /dev/null -quiet -dumpbase null -mtune=generic -march=i686 -auxbase null -version -fsyntax-only -o /dev/null -fstack-protector
GNU C++ (Ubuntu/Linaro 4.7.3-1ubuntu1) version 4.7.3 (i686-linux-gnu)
	kompilerad med GNU C version 4.7.3, GMP-version 5.0.5, MPFR-version 3.1.1-p2, MPC-version 0.9
GGC heuristik: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignorerar dubblerad katalog ”/usr/include/i386-linux-gnu/c++/4.7”
ignorerar ej existerande katalog ”/usr/local/include/i386-linux-gnu”
ignorerar ej existerande katalog ”/usr/lib/gcc/i686-linux-gnu/4.7/../../../../i686-linux-gnu/include”
#include "..." sökning startar här:
#include <...> sökning startar här:
 /usr/include/c++/4.7
 /usr/include/i386-linux-gnu/c++/4.7/.
 /usr/include/c++/4.7/backward
 /usr/lib/gcc/i686-linux-gnu/4.7/include
 /usr/local/include
 /usr/lib/gcc/i686-linux-gnu/4.7/include-fixed
 /usr/include/i386-linux-gnu
 /usr/include
Slut på söklistan.
GNU C++ (Ubuntu/Linaro 4.7.3-1ubuntu1) version 4.7.3 (i686-linux-gnu)
	kompilerad med GNU C version 4.7.3, GMP-version 5.0.5, MPFR-version 3.1.1-p2, MPC-version 0.9
GGC heuristik: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 05dc12e85ddcb3b3fbff3304be1ce098
COMPILER_PATH=/usr/lib/gcc/i686-linux-gnu/4.7/:/usr/lib/gcc/i686-linux-gnu/4.7/:/usr/lib/gcc/i686-linux-gnu/:/usr/lib/gcc/i686-linux-gnu/4.7/:/usr/lib/gcc/i686-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/i686-linux-gnu/4.7/:/usr/lib/gcc/i686-linux-gnu/4.7/../../../i386-linux-gnu/:/usr/lib/gcc/i686-linux-gnu/4.7/../../../../lib/:/lib/i386-linux-gnu/:/lib/../lib/:/usr/lib/i386-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/i686-linux-gnu/4.7/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-fsyntax-only' '-shared-libgcc' '-mtune=generic' '-march=i686'

This is all I got.


EDIT:
It worked! Thank you so much!
Post Reply