Code completion in Kdevelop 3.0.0b1 ?

Erwan Becquet becquet at cnam.fr
Mon Dec 8 12:29:47 GMT 2003


Hi,

I want to thank everybody who helped me
to get code completion working. My problem
was in fact simple : I've got a project with several
subprojects and my include files were declared
(-Ixxx options) only in subprojects.

So parser for code completion did not have it ! I
just added my include path on top level and it
works !!!

Thanks.
Erwan.

Christopher DeGuise a écrit:

>I actually found this FAQ in the documentation for the class that supports C++ 
>in the IDE.  The link is 
>"http://developer.kde.org/documentation/library/cvs-api/kdevelop/html/classCppSupportPart.html" 
>you will find it half way down.
>
>The text of the FAQ is :
>
>-------------
>F.A.Q.:
>How can I have documentation on functions when using codecompletion ?
> 
>Create the xml-output with Doxygen of the files you want to add to the 
>classstore
>Create the new PCS-database with r++. Now you have to use the -d command line 
>switch of r++ to have it include the documentation. It is used like 
>-d/path/of/doxygen/xml/output (notice that there is _no_ whitespace between 
>-d and the path!). You can use it multiple times to have r++ search for the 
>informations in different directories. r++ -d has to be used (like every 
>other commandline switch) before you write the directories you want r++ to 
>create the PCSdatabase from.
>Activate your newly created Database in the Project->Project Options...->C++ 
>Specific->Code Completion... . 
>
>How does this work ? I have no clue. Ask roberto! :) 
>How does r++ work ? I have no clue. Ask roberto! :) 
>
>------------
>
>Looks like this needs to be documented a little better.  With my email and the 
>FAQ, you should be able to piece it together.  If I have time, I will attempt 
>to create a template doxygen config file that is needed for this 
>documentation.
>
>-Chris
>
>On Sunday 07 December 2003 13:09, you wrote:
>  
>
>>Hi,
>>
>>I'm very interested by this FAQ ! Could you please give me
>>the location to find it ?
>>
>>I understand reading you that there is a step involving Doxygen
>>to make the code completion working ?
>>
>>Thanks in advance.
>>Erwan.
>>
>>Christopher DeGuise wrote:
>>    
>>
>>>So, I sent the message some what premature.
>>>
>>>I found the FAQ on adding items to the PCS.  It appears that you just need
>>>to add the STL libraries just like you would your own.  I was missing the
>>>doxygen part, and the help for r++ on the command line is nill.
>>>
>>>1.  Create the xml doxygen documentation.  I did this by creating a config
>>>file for doxygen, using doxywizard, and ran it.
>>>
>>>I then used the following command to produce the PCS database.
>>>
>>>r++ gxxtestdb /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/*
>>>-d/home/cdeguise/tmp/gxx/output/xml
>>>
>>>(watch line wraps)
>>>
>>>The one catch I have noticed though, is problems with namespace
>>>resolution. If I use this statement "using namespace std;" or "using
>>>namespace std::stack;" in my file, the code completion will not work for
>>>this code
>>>
>>>	stack<int> foo;
>>>	foo. (no lookup here)
>>>
>>>But if I have this
>>>	std::stack<int> foo;
>>>	foo.(lookup works).
>>>
>>>Anyway, I think I saw a bug report on this and it was resolved, so it
>>>might be a non issue now.
>>>
>>>Thanks for listening.
>>>
>>>On Friday 05 December 2003 15:58, you wrote:
>>>      
>>>
>>>>I have another question on code completion.
>>>>
>>>>It works for me on my project, QT, and KDE stuff.  I attempted to add a
>>>>PCS for the C++ headers.  This does not seem to work for me.
>>>>
>>>>I added all the headers in the /usr/lib/gcc-lib/..../g++v3 directory
>>>>(This is the only spot on my system they were) and created the class
>>>>store.
>>>>
>>>>When I include something like <stack>, I do not get any code completion
>>>>for something like
>>>>
>>>>  stack<int> foo;
>>>>
>>>>  foo. (nothing shows here, I should see things like push, etc.)
>>>>
>>>>Any thoughts on this?  I have poked around the list archive and forums,
>>>>but everyone always seems to be discussion KDE and QT code completion.
>>>>
>>>>Thanks!
>>>>
>>>>        
>>>>
>>>>>On Friday 05 December 2003 17:57, you wrote:
>>>>>          
>>>>>
>>>>>>I have problems to use code completion in a C++
>>>>>>project. Is there sthing special to be careful of ?
>>>>>>Did KDevelop need external progs to do the
>>>>>>code completion ?
>>>>>>            
>>>>>>
>>>>>No. Just go to project settings, c++ settings, code completion tab and
>>>>>create the persistant class store.
>>>>>
>>>>>          
>>>>>
>>>>>>Is the files of the current project automatically
>>>>>>added for completion or I need to create a PCS
>>>>>>for project too ?
>>>>>>            
>>>>>>
>>>>>Project files are parsed automatically, no pcs is is needed.
>>>>>
>>>>>--
>>>>>Alexander Dymo
>>>>>Ukrainian State Maritime Technical University, IT Department
>>>>>
>>>>>
>>>>>-
>>>>>to unsubscribe from this list send an email to
>>>>>kdevelop-request at kdevelop.org with the following body: unsubscribe
>>>>>»your-email-address«
>>>>>          
>>>>>
>>>>-
>>>>to unsubscribe from this list send an email to
>>>>kdevelop-request at kdevelop.org with the following body: unsubscribe
>>>>»your-email-address«
>>>>        
>>>>
>>-
>>to unsubscribe from this list send an email to
>>kdevelop-request at kdevelop.org with the following body: unsubscribe
>>»your-email-address«
>>    
>>
>
>  
>



-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list