Thoughts on editor disappearing issues
Hamish Rodda
rodda at kde.org
Thu Jun 12 01:48:45 UTC 2008
Hi,
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?
Cheers,
Hamish.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20080612/66457543/attachment.html>
More information about the KDevelop-devel
mailing list