need help with completion problem (no widget shown even though items are found)

Milian Wolff mail at milianw.de
Thu Aug 13 21:48:42 UTC 2009


I got such a strange problem I cannot debug it / fix it myself:

You can observe the bug in a recent enough version of the PHP plugin:

- open a php file in any project
- the project should have at least a subfolder in the dir of the php file
- that subfolder should have some contents

now insert this into the php file (| <-- cursor)

<?php

include "|";
?>

- requesting file completion should give you the subfolder
- execute it
- requesting file completion gives nothing

looking at debug output you should see that there are actually items created:

kdevelop(31378)/kdevelop (php support) 
Php::CodeCompletionContext::completionItems: found: 
KUrl("file:///home/milian/projects/kde4/git/php/app_templates/")      
kdevelop(31378)/kdevelop (php support) 
Php::CodeCompletionContext::completionItems: 
KUrl("file:///home/milian/projects/kde4/git/php/app_templates/CMakeLists.txt")                                                                                                                                                                
kdevelop(31378)/kdevelop (php support) 
Php::CodeCompletionContext::completionItems: "CMakeLists.txt" "CMakeLists.txt" 
"CMakeLists.txt"                           
kdevelop(31378)/kdevelop (php support) 
Php::CodeCompletionContext::completionItems: 
KUrl("file:///home/milian/projects/kde4/git/php/app_templates/simple_phpapp/")                                                                                                                                                                
kdevelop(31378)/kdevelop (php support) 
Php::CodeCompletionContext::completionItems: found items: 2 

But where should these two items be shown? Where should the widget be created? 
Why doesn't it work for subfolders but works for the main folder?!
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20090813/615c7e1a/attachment.sig>


More information about the KDevelop-devel mailing list