The Ultimate Qt Community site
Home News Forum Wiki Contest FAQ Links

Go Back   Qt Centre Forum > Qt > Qt Software

Qt Software New applications — announcements and feedback.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th April 2008, 14:30
philwinder philwinder is offline
Novice
 
Join Date: Apr 2008
Qt products used: Qt4
Qt platforms used: Windows
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Question QDevelop and CTags -> Not working

Hi all,
I have just installed qt 4.3.4 with QDevelop 0.25.2
Everything is working fine, building, no bugs etc. But I cant get ctags working. I have tried installing both the recommended version of ctags and the most up to date version. I have successfully tested that ctags is working via the external tools dialogue and refreshed my code to get a valid class listing.
But, whenever I do "anyThing->" or "anyThing." nothing works.

Any ideas on what I am doing wrong?

Cheers,

Phil

Reply With Quote
  #2  
Old 23rd April 2008, 01:36
struktured struktured is offline
Beginner
 
Join Date: Apr 2008
Qt products used: Qt4, Qtopia
Qt platforms used: MacOS, Unix/X11, Windows
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: QDevelop and CTags -> Not working

I have the same problem. Same versions with gentoo / 64 bit system. I first had an error due to "--language-force=c++". I took that string out of the qdevelop code, rebuilt and got this instead:

/usr/bin/ctags: unrecognized option `--fields=afiKmsSzn'

Maybe I should just keep hacking away until ctag stops complaining...

Reply With Quote
  #3  
Old 23rd April 2008, 09:20
fullmetalcoder's Avatar
fullmetalcoder fullmetalcoder is offline
Advanced user
 
Join Date: Jan 2006
Location: froggy rocks!
Qt products used: Qt4
Qt platforms used: Unix/X11, Windows
Posts: 952
Thanks: 8
Thanked 94 Times in 89 Posts
Default Re: QDevelop and CTags -> Not working

First of all check that you are using exuberant ctags and not another version that some linux systems ship. Indeed such a version does not support the same command line option as the "standard" ctags that QDevelop expect to find (yeah, this is the downside of relying on external programs...). Then indicate the full path to the correct ctags executable (or use the "which ctags" command to check that the correct one is accessible thanks to proper PATH settings).

If this does not solve your problem you got a couple options left :
  • waiting for a fix (may be very long)
  • fixing it yourself (may be very hard)
  • forgetting about the wonders of code completion (may be very annoying)
  • switching to another IDE whose completion works better (not necessarily mine though... CodeLite completion works well and I've heard that Code::Blocks does a decent job as well but these don't use Qt and they do not support it as well as a "Qt-targeted" one)
__________________
Looking for a powerful and flexible IDE with complete Qt 4 integration ? Have look at Edyuk!

Last edited by fullmetalcoder; 23rd April 2008 at 12:44.
Reply With Quote
  #4  
Old 23rd April 2008, 09:48
philwinder philwinder is offline
Novice
 
Join Date: Apr 2008
Qt products used: Qt4
Qt platforms used: Windows
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Default Re: QDevelop and CTags -> Not working

Thaks for the replies,
struktured: Ive never had errors like that, ctags "just didnt work" no errors, no warnings, nothing.
fullmetalcoder: Yeah ive got the right version, and QDevelop does indeed know where to find it.

I have had some updates though, for some reason is HAS started working for my own code (i.e. any classes that I write). I dont know why, when or how, but sometimes I come back to the code and it starts autocompleting. It still does not work with any QT classes though.

So, I think I might try that IDE youve been advertising since Ive never tried it before.

Thanks,
Phil Winder

Reply With Quote
  #5  
Old 23rd April 2008, 12:47
fullmetalcoder's Avatar
fullmetalcoder fullmetalcoder is offline
Advanced user
 
Join Date: Jan 2006
Location: froggy rocks!
Qt products used: Qt4
Qt platforms used: Unix/X11, Windows
Posts: 952
Thanks: 8
Thanked 94 Times in 89 Posts
Default Re: QDevelop and CTags -> Not working

Quote:
Originally Posted by philwinder View Post
I have had some updates though, for some reason is HAS started working for my own code (i.e. any classes that I write). I dont know why, when or how, but sometimes I come back to the code and it starts autocompleting. It still does not work with any QT classes though.
It's been a while since I last gave a try to QDevelop so I may be very wrong but maybe you need to explicitely generate the Qt completion database somehow (look in the menus and settings) before it can successfully complete Qt types/methods/...
__________________
Looking for a powerful and flexible IDE with complete Qt 4 integration ? Have look at Edyuk!
Reply With Quote
  #6  
Old 23rd April 2008, 13:32
evgenM evgenM is offline
Novice
 
Join Date: Mar 2006
Posts: 46
Thanks: 5
Thanked 4 Times in 3 Posts
Default Re: QDevelop and CTags -> Not working

ctags not work if project path contains whitespace, like "C:\Program Files\..."

Reply With Quote
  #7  
Old 23rd April 2008, 13:35
philwinder philwinder is offline
Novice
 
Join Date: Apr 2008
Qt products used: Qt4
Qt platforms used: Windows
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Default Re: QDevelop and CTags -> Not working

Yeah, theres an option in the tools menu called "Rebuild Qt classes Database", but you click that, it finishes way too fast. Like its pointing to the wrong Qt include folder. I did have a quick look, but reading somebody else's code, even if its well commented, is hard work.

Just a comment on Edyuk: The open project doesnt seem to be working very well. It doesnt open the pro files created in Qdevelop (it doesnt do anything fancy) and when I create a new pro file in edyuk (How is it pronounced by the way??? ), I cannot reopen that file. Using 1.0.0-rc1.

The the on-demand style changing is a cute touch though

Cheers,
Phil Winder

Last edited by philwinder; 23rd April 2008 at 13:51.
Reply With Quote
  #8  
Old 23rd April 2008, 13:50
philwinder philwinder is offline
Novice
 
Join Date: Apr 2008
Qt products used: Qt4
Qt platforms used: Windows
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Default Re: QDevelop and CTags -> Not working

evgenM: Thanks for the tip, I shall have to remember that in the future.
But, it works fine for me even with spaces for my own classes, but still not (either way) for qt's functions.

Reply With Quote
  #9  
Old 23rd April 2008, 15:05
fullmetalcoder's Avatar
fullmetalcoder fullmetalcoder is offline
Advanced user
 
Join Date: Jan 2006
Location: froggy rocks!
Qt products used: Qt4
Qt platforms used: Unix/X11, Windows
Posts: 952
Thanks: 8
Thanked 94 Times in 89 Posts
Default Re: QDevelop and CTags -> Not working

Quote:
Originally Posted by philwinder View Post
Just a comment on Edyuk: The open project doesnt seem to be working very well. It doesnt open the pro files created in Qdevelop (it doesnt do anything fancy) and when I create a new pro file in edyuk (How is it pronounced by the way??? ), I cannot reopen that file. Using 1.0.0-rc1.
  1. How did you try to open a project? Using File|Open or Project|Open ? (it does make a great deal of a difference since both are enabled to satisfy every users
  2. How does your sample project look like?
  3. I don't understand the reopening issue
  4. These issues may also have been fixed since last release (I'd better release that rc2 soon I guess)
  5. Let's not hijack this thread and move the discussion to a more appropriate place (e.g. Edyuk thread in this forum, or Edyuk mailing list or whatever mean given in the readme file, ...)
__________________
Looking for a powerful and flexible IDE with complete Qt 4 integration ? Have look at Edyuk!
Reply With Quote
  #10  
Old 23rd April 2008, 15:16
philwinder philwinder is offline
Novice
 
Join Date: Apr 2008
Qt products used: Qt4
Qt platforms used: Windows
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Default Re: QDevelop and CTags -> Not working

Ok,
thread started at http://www.qtcentre.org/forum/f-qt-s...yuk-13210.html

Phil Winder

Reply With Quote
  #11  
Old 24th April 2008, 22:51
struktured struktured is offline
Beginner
 
Join Date: Apr 2008
Qt products used: Qt4, Qtopia
Qt platforms used: MacOS, Unix/X11, Windows
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: QDevelop and CTags -> Not working

The exuberant tag issue resolved my problem. Now we just need to beef up this code completion to make it disgustingly awesome!

Reply With Quote
  #12  
Old 6th May 2008, 19:43
philwinder philwinder is offline
Novice
 
Join Date: Apr 2008
Qt products used: Qt4
Qt platforms used: Windows
Posts: 58
Thanks: 6
Thanked 0 Times in 0 Posts
Default Re: QDevelop and CTags -> Not working

My problems have been resolved as of QDevelop r319.
Get it (Or any newer version that may appear) via that svn: http://qdevelop.googlecode.com/svn/trunk/

Phil

Reply With Quote
  #13  
Old 9th May 2008, 17:50
GreyGeek GreyGeek is offline
Intermediate user
 
Join Date: Jan 2006
Location: Lincoln, NE USA
Qt products used: Qt4
Qt platforms used: Unix/X11, Windows
Posts: 178
Thanks: 3
Thanked 6 Times in 5 Posts
Default Re: QDevelop and CTags -> Not working

Quote:
Originally Posted by struktured View Post
The exuberant tag issue resolved my problem. Now we just need to beef up this code completion to make it disgustingly awesome!
Code completion in VS2003 C++ is "beefed up" too much. It often displays many methods and properties in