[Bug 81717] New: True Code completion for the Python language
Xavier Spriet
xavier at wuug.org
Thu May 20 14:14:18 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=81717
Summary: True Code completion for the Python language
Product: kdevelop
Version: 3.0.3
Platform: Gentoo Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: wishlist
Priority: NOR
Component: general
AssignedTo: kdevelop-devel kdevelop org
ReportedBy: xavier wuug org
Version: 3.0.3 (using KDE KDE 3.2.2)
Installed from: Gentoo Packages
Compiler: gcc (GCC) 3.3.3 20040412 (Gentoo Linux 3.3.3-r3, ssp-3.3-7, pie-8.5.3) -march=athlon-xp -O3 -pipe -fomit-frame-pointer -falign-functions=16 -msse -falign-labels=1 -falign-loops=16 -falign-jumps=16 -w -funroll-loops
OS: Linux
The python interpreter allows for the import of external packages and modules.
KDevelop currently does not implement code completion for these modules.
A simple approach to resolve this issue would be to present the user with a configuration dialog that would allow him/her to select the locations of possible python modules (the "site" packages) and index all the modules in that directory. The user should be able to go back to that dialog and click on "re-index" to have any new module re-indexed (like Konqueror's plugins dialog).
After that, once KDevelop detects an "import" statement in a python script, it should be able to fetch the indexed elements for that module if it has already been indexed, and populate the classview accordingly, thus making the code completion much more accurate and "complete".
Ideally, code completion would occur when the dot (.) symbol is pressed to present all available attributes and methods of a module, but also display the available modules upon typing an "import" statement. (e.g: from (select from list of available packages) import (select from list of modules in this package), etc..)
The "import" feature is well documented at the following address: http://docs.python.org/ref/import.html
More information about the KDevelop-devel
mailing list