[Qt-creator] Code completion issues

Roberto Raggi roberto.raggi at trolltech.com
Mon Jun 15 10:04:14 CEST 2009


On Jun 13, 2009, at 11:40 AM, Mateusz Adamczyk wrote:

> Hello!
>
> Firstly, I want to say, that qtcreator is the most pretty ide I've  
> ever seen (comparing to VS's, NetBeans, Ecclipse, KDevelop,  
> Code::Blocks,...).
> What's more it has really great code completion! Most of the time it  
> works really fast and accurate. But there are some issues.  
> Currently, I'm working on console app (without qt) which uses  
> boost::spirit v.2 and boost::phoenix v.2. When I code attached file  
> (I've inserted class definition instead of header file) code  
> completion gets awfully slow. Hitting ':' twice I've got to wait  
> about 30s. for response. I could write line:  
> "using ::boost::spirit::float_;" and wait a minute before ide  
> responds (in that time ide tried to display code completion list a  
> few times...). I know, that spirit2 isn't jet optimized for  
> compilation

yeah, our completion engine does't cache the lookup tables and the  
template instantiations. So I can clearly see that it'll perform  
pretty bad when completing symbols from boost::spirit. I'm prototyping  
an alternative way to represent the lookup tables. It is something  
that we need for our nextgen refactoring engine. boost and  
boost::spirit are pretty good usecase for the new lookup tables so  
thanks for the report and for sure we will test our new stuff against  
the spirit library.

> and write: "A::" code completion suggest that there is "namespace A"  
> in A! Is it a bug or a feature?

oops! yep, this is a bug it shouldn't show the namespace.

>
> And one more idea for code completion. It would be nice, if user can  
> provide ide paths for header files. And when writing "#include <bo"  
> and hitting ctrl+space can give list of header files, which paths  
> starts with "<one of given paths>/bo"...

it's in our todo list.

Thanks for the report.

ciao robe




More information about the Qt-creator-old mailing list