Page 1 of 1

Codecompletion OsX 10.9.2 Codelite 5.4 WxWidgets 3.0.0

Posted: Sun Apr 06, 2014 12:35 am
by LairdTurner
Hello!

I've successfully get it to work completely including GDB-Debugger,
but if I enter for example #include <st... for #include <stdio.h> the code completion
doesn't work. Nor for any include for wxWidgets. I've tried to Re-Tag my projects but
nothing! :cry:
Any suggestions?

Thanks


greets

-René

Re: Codecompletion OsX 10.9.2 Codelite 5.4 WxWidgets 3.0.0

Posted: Sun Apr 06, 2014 2:41 am
by eranif
The code completion works when you type CMD+SPACE
On OSX, this shortcut is default to the search shortcut.

In addition, in order for code completion to work, you should define the search paths for the include paths
Can you please provide the information as described in this forum thread?

Eran

Re: Codecompletion OsX 10.9.2 Codelite 5.4 WxWidgets 3.0.0

Posted: Sun Apr 06, 2014 11:33 am
by LairdTurner
Hi!

Basically I've get it now to work, but I've got some issues regarding includes...
But... First things first...
Have a look if I did something wrong.
In Settings->Tags Settings under CTags->SearchPaths I've got this

/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include
/Library/Frameworks
/System/Library/Frameworks
/usr/include
/usr/include/c++/4.2.1
/usr/include/c++/4.2.1/backward
/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include
/usr/local/include
/Users/rhoeger/Documents/WxWidgets/tags/WX_3_0_0/include

And in my project settings I've got...
Bildschirmfoto 2014-04-06 um 09.14.47.png
Bildschirmfoto 2014-04-06 um 09.23.02.png
Bildschirmfoto 2014-04-06 um 09.23.57.png
Code competion is now working...
But in case of wxWidgets the "wx/..." prefix doesn't work.

For example... I want to enter "#inlcude <wx/event.h>"
I'm typing "#include <wx" now I would expect that code completion suggest me the folder "wx/" but I get only
all headers starting with "wx".
Btw. I can enter directly "#include <event.h> which seems to be the header of "wx/event.h".
What can I do to get this working?

Thanks!


greets

-René

Re: Codecompletion OsX 10.9.2 Codelite 5.4 WxWidgets 3.0.0

Posted: Sun Apr 06, 2014 12:37 pm
by eranif
Hi,

An FYI: the project settings has little impact on the code completion (unless you are using clang based code completion, see here for info: http://codelite.org/LiteEditor/ClangIntegration41 )
The "file-completion" is not that smart :P it suggests based on file names

It not recommended to include directly event.h, but rather wx/event.h (unless I misunderstood you...)
Since you are using OSX, will you be interested in testing codelite 6.0?, I usually don't release "pre-releases", however, this release contains a big feature - LLDB debugger integration with codelite

Eran

Re: Codecompletion OsX 10.9.2 Codelite 5.4 WxWidgets 3.0.0

Posted: Sun Apr 06, 2014 1:38 pm
by LairdTurner
Hello!
It not recommended to include directly event.h, but rather wx/event.h (unless I misunderstood you...)
I meant that if I enter "wx" the code completion doesn't suggest the folder "wx/". I must always have to know what
header files included in wxWidgets. Event (wx/event.h) is an example. I have some libraries
this problem occurs too. Codelite finds the headers without any problem but don't respect the folders where the headers are in.
It's a little bit confusing.
Since you are using OSX, will you be interested in testing codelite 6.0?, I usually don't release "pre-releases", however, this release contains a big feature - LLDB debugger integration with codelite
Sure, that would be great. It took a long time to get the gdb-debugger working under Mavericks.
What compiler do you suggest to use in future? Stay at gcc or llvm?

Thanks!


greets

-René

Re: Codecompletion OsX 10.9.2 Codelite 5.4 WxWidgets 3.0.0

Posted: Sun Apr 06, 2014 1:56 pm
by eranif
LairdTurner wrote:Sure, that would be great. It took a long time to get the gdb-debugger working under Mavericks
I moved to clang (codelite is not built with clang under OSX)
LairdTurner wrote:I meant that if I enter "wx" the code completion doesn't suggest the folder "wx/". I must always have to know what
header files included in wxWidgets. Event (wx/event.h) is an example. I have some libraries
this problem occurs too.
Please open a feature request for this

Eran