How can I force parser to reparse the project?

Leon Pollak leonp at plris.com
Tue Nov 18 11:56:59 GMT 2014


On Tuesday 18 November 2014 10:23:04 you wrote:
> On Tuesday 18 November 2014 11:06:26 Leon Pollak wrote:
> > Hello, all.
> > How can I force parser to reparse the project?
> > Thanks.
> 
> Normally this shouldn't be needed.
> What problems are you experiencing?
Thanks, Kevin.
There are several problems - one I reported with the test example and Aleix 
seems to receive it...:-)

Another problem is as following:
I have 2 different projects in two different directories, which have the same 
named files.
If I open both projects in the same session (on error, I try to keep opening 
different sessions), the parser makes cross-references.
Thus, even if I close everything and restart kdevelop and open the FIRST 
project, parser still provides definitions/declarations from the SECOND one.
This may cause very very unpleasant problems, as I thought that I am editing 
the first project, while actually I was editing some files from the second 
one.

> 
> There's a brute-force way to kill the cache, though:
> - Quit kdevelop
> - Run 'kdevelop -l', note the "Hash" of your session
> - rm ~/.cache/kdevduchain/kdevelop-$HASH, i.e.
>   rm ~/.cache/kdevduchain/kdevelop-\{97aab4af-0baf-4cf5-891e-9b2b8f49629e\}/
> 
> Greets
Thank you!
-- 
Leon



More information about the KDevelop mailing list