Thoughts on editor disappearing issues

Hamish Rodda rodda at
Thu Jun 12 01:48:45 UTC 2008


The problem: if the user closes the document while duchain parsing is 
occurring, the text editor will be deleted and may be accessed after deletion.

At this point, we should probably dump all smart ranges and switch to non-
smart range parsing, however the file that was just closed may be modified and 
not saved to disk, so ideally we just need to throw out that parse session and 
do it again from disk.

Seeing as this covers a large body of code, should we thow an exception in the 
editor integrator, and catch them outside of the duchain parsing (ie. in the 
parse job).  Then, the parse job can try again from disk.

Does that sound like a good solution?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the KDevelop-devel mailing list