DUChain (?) crashes after recent updates.

Bertjan Broeksema bertjan at kdab.net
Wed Nov 25 13:53:18 UTC 2009


On Wednesday 25 November 2009 13:53:07 David Nolden wrote:
> You didn' t answer the important question whether this is a regression or
>  not. Did it work before?

As I said, I had a slightly other approach before and that didn't work 
reliably for me either. Until now I just didn't bother to investigate.

> Otherwise, you should notice that there is always 2 contexts created from
>  each CPP file:
> The Proxy-context, which represents a file in one specific preprocessor-
> environment, and the content-context which contains the actual duchain
>  stuff and may be shared among many proxy-contexts.

This is the solution to my problem indeed. It wasn't clear to me that I got a 
proxy content back and it wasn't clear to me either that I had to fetch the 
content-context first. Now I implemented that it seems to work as expected. 
Thanks for the info/your time.

Btw, probably it is a good idea to update the api docs of 
DUChain::updateContextForUrl and add a convenience method for getting the 
content-context. Currently there is no such method in DUChainUtils (or I must 
have overlooked it).

Cheers,

Bertjan




More information about the KDevelop-devel mailing list