A few questions about project manager

Milian Wolff mail at milianw.de
Fri Mar 30 09:21:10 UTC 2012

On Friday 30 March 2012 11:22:41 Alexandre Courbot wrote:
> Hi Milian, thanks for your answer!
> >> * I need to reparse the whole project whenever the its configuration
> >> changes because some include directories may have added/removed. How
> >> can I achieve that? Right now the parsing of the kernel configuration
> >> is done by and overload of the import() method of
> >> AbstractFileManagerPlugin, which is definitely not the right place.
> >> More generally, how can I trigger a reparsing the whole project or
> >> some of its files?
> > 
> > You can connect to the KDirWatch returned by projectWatcher. When it emits
> > dirty() for your Makefile, trigger a reload?
> Yup, that's what I thought - my question was more about, how to
> trigger that reload? Is there a signal for that? Or a method of the
> project manager to call?

there's reload() but I'm not sure on this one, have to investigate.

> >> * Until recently, my project configuration dialog had two panes: the
> >> one I wrote, and the one for make that allowed to set things like the
> >> number of parallel processes for compilation. However, the make pane
> >> is gone when I compile against the latest KDevelop git. Any idea about
> >> how I can get it back?
> > 
> > add org.kdevelop.IMakeBuilder to X-KDevelop-IRequired in your .desktop
> > file - if that does not work, ping me and I'll fix it.
> That did it, thanks - at the same time I am thinking about using the
> MakeBuilder (through its IMakeBuilder interface) instead of my own
> builder job. Only thing is that to support kernel building I need to
> either pass several targets to build (instead of one, the only
> currently supported behavior), or to be able to modify its
> environments variables. Right now the IMakeBuilder interface allows
> none of this - would that be acceptable if I extended it a little to
> support one or both of these behaviors?

sure, if it helps your usecase, feel free to extend to code base. patches on 
reviewboard welcome :)

Milian Wolff
mail at milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20120330/b45e2aa0/attachment.sig>

More information about the KDevelop-devel mailing list