Results 1 to 8 of 8

Thread: Steps to configure Ctags with QDevelop

  1. #1
    Join Date
    Jun 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Steps to configure Ctags with QDevelop

    Hello,

    I have a problem regarding Ctags installation and configuration for QDevelop 0.25 under Windows. I have also checked other threads (I have exactly the same problem as Phil Winder from http://www.qtcentre.org/forum/showth...eferrerid=6713) but I don't understand how can I solve it.

    I do the following steps:

    Download Ctags,
    Configure properly Ctags in QDevelop using the "external tools" menu
    (path to the binary file of ctags).
    Build a tag file with the following command: ctags -R * in the project
    directory, generating a tag file in the same directory.

    The code autocompletion of QDevelop is not working. Could anyone show me
    the steps on how to install and configure Ctags in Qdevelop ? Do I have to place the TAG file somewhere, or include it in QDevelop somehow? I feel completely lost...

    Thanks in advance.

  2. #2
    Join Date
    Apr 2008
    Posts
    73
    Thanks
    11
    Thanked 7 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Steps to configure Ctags with QDevelop

    You dont have to compile the code completion yourself. QDevelop will do that for you.
    Make sure that your path info is all correct, I suspect it is.

    The problem is probably that you have the wrong version. You have to get the newest version from the SVN repository. In the downloadable version it hasnt been fixed.
    This problem was fixed in revision R320.

    Cheers,
    Phil Winder
    Best Regards,
    Phil Winder
    www.philwinder.com

  3. #3
    Join Date
    Jun 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Re: Steps to configure Ctags with QDevelop

    Thanks for your reply, Phil.

    How can I download and compile the source code of QDevelop ? I'm using Windows...

  4. #4
    Join Date
    Jun 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Re: Steps to configure Ctags with QDevelop

    OK, I have downloaded the source code of QDevelop (version 0.26-svn) through Subversion and compiled it.

    Still pressing Ctrl+SPace does not make auto-completion appear...Any ideas?

  5. #5
    Join Date
    Jun 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Thumbs up Re: Steps to configure Ctags with QDevelop

    OK, Ctags seems to work with Qt Classes *only*, both in 0.25 and 0.26-svn versions of Qdevelop.

    So my last question is... is there any way to use ctags with my own classes ? (for example, custom widgets,etc...)

  6. #6
    Join Date
    Apr 2008
    Posts
    73
    Thanks
    11
    Thanked 7 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Steps to configure Ctags with QDevelop

    Well its definately working now. It works for me on the same platform. I think if you hit the refresh button at the top left of open c files that might do it. Bear in mind that there might be some of your functions that do not work because QDevelop cannot see them, like things in libraries and the like.

    Qt code complete is the most important anyway!
    Best Regards,
    Phil Winder
    www.philwinder.com

  7. #7
    Join Date
    Jun 2008
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Re: Steps to configure Ctags with QDevelop

    Hitting the refresh button from the editor when a C file is opened makes no effect...

    Is there any place where I should place my project files in order that ctags/Qdevelop can see them ?

  8. #8
    Join Date
    Apr 2008
    Posts
    73
    Thanks
    11
    Thanked 7 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Steps to configure Ctags with QDevelop

    Nope, should be working as is. You dont have to move any files. Try and create a simple example. Ive just downloaded the newest SVN version re-make'd it created a new project with a dialog and on the main.cpp type "win." and lots of juicy completes pop up!

    Phil
    Best Regards,
    Phil Winder
    www.philwinder.com

Similar Threads

  1. QDevelop and CTags -> Not working
    By philwinder in forum Qt-based Software
    Replies: 13
    Last Post: 9th May 2008, 21:40

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.