Project Managers not working anymore

Andreas Pakulat apaku at gmx.de
Sun May 6 14:53:13 UTC 2007


On 06.05.07 09:36:22, Matt Rogers wrote:
> On Sunday 06 May 2007 09:08, Andreas Pakulat wrote:
> > Hi,
> >
> > I need some help from a template guru, out of a sudden the project
> > managers cannot be used anymore here on my system. What seems to happen
> > is that code from the macro
> >
> > KDEV_DECLARE_EXTENSION_INTERFACE()
> >
> > is not executed. What the macro does, if I understand correctly, is
> > create a specialized template function called qt_extension<>() where the
> > parameter given to the KDEV_DECLARE_EXTENSION_INTERFACE is used, i.e.
> > for IProjectFileManager I get
> >
> > qt_extension<IProjectFileManager*>()
> >
> > however during debugging this function is not executed, but instead the
> > "default" one taking a parameter "T", which returns 0 instead of a
> > proper object.
> >
> > Now I upgraded gcc recently to 4.1.3 on Debian unstable and wonder
> > wether it might be a gcc bug that the specialized template function
> > isn't executed.
> >
> > Andreas
> 
> What do you mean by project managers not working anymore? Is their GUI not 
> displayed in KDevelop, or does the debug output indicate they're not loaded? 

The KMessageBox in shell/project.cpp:257 is executed, which means the
extension<KDevelop::IProjectFileManager>() before that on line 236
fails. The reason being that the wrong qt_extension<>() function is
called. 

This happens for the QMake and Generic Manager for me.

> My last commit was written with KDevelop 4 and the generic project manager 
> loaded and worked just fine.

Everything worked fine here too until yesterday or the day before when I
rebuilt the shell after updating gcc.

Andreas

-- 
You display the wonderful traits of charm and courtesy.




More information about the KDevelop-devel mailing list