MovingRanges Port: untitled documents

Milian Wolff mail at
Thu Jul 22 13:07:00 UTC 2010

Hey there,

I noticed that KDevelop crashes in the MovingRanges port when one edits an 
untitled document. This triggers a deleayed documentLoaded() (very strange 
btw. that code!) and goes to the background parser slot. There it's checked 
for a textDocument and a tracker gets added which checks the url for validity.

KDevelop::Document::url() == 'Untitled'; == valid
TextDocument::url() == "" != valid

=> assert

now I thought, fine lets add checks for validity before creating the tracker, 
but is that what we want? Why is there a tracker at all for a document for 
which no language exists? I'd like some feedback before I start "fixing" stuff 
to make it work.

Milian Wolff
mail at
-------------- 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: <>

More information about the KDevelop-devel mailing list