Registered Member
|
Hi,
I'm searching for a way to get autocompletion to work with my php-projects (namely drupal modules and sites). It seems that auto completion works fine for PHP-core and the current file I'm editing but fails for: * function/classes declared in other files in the same project * function/classes declared in other related projects (I've found no way to tell kdevelop what additionally files to index). Note that my files don't have any include/require statements as drupal cares for including the right files at the right time. Any suggestions on how to configure kdevelop to work with that? |
KDE Developer
|
Regarding drupal: many drupal files don't have the *.php file extension which breaks kdevelop/kmimetypefinder. To "solve" this, go to system settings -> file associations and add the required file extensions (*.inc most notably) to the php mimetype there.
Regarding third party libraries (e.g. from pear or your package manager), you can either open their folders as a separate project, or symlink the required folder into your project. This we need to improve somehow in the future by adding customizable include paths somehow but well - we are not there yet. cheers
current KDE projects: Quanta, KDevelop, Kate
|
Registered Member
|
Hi,
sorry - I was too busy to try it until now. thanks for you answer. I now use the "open the complete drupal folder as project"-approach (in addition to adding the file extensions) to get auto-completion in kdevelop. |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell