Bug 81717 - True Code completion for the Python language
Summary: True Code completion for the Python language
Status: RESOLVED FIXED
Alias: None
Product: kdev-python
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-16 23:10 UTC by Xavier Spriet
Modified: 2013-04-07 22:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Spriet 2004-05-16 23:10:16 UTC
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
Comment 1 Amilcar do Carmo Lucas 2004-07-19 22:45:12 UTC
Unfortunatly phyton is currently unmaintained.

Take a look at:
http://www.kdevelop.org/HEAD/doc/api/html/classPythonSupportPart.html
Comment 2 bugzilla 2005-06-16 20:40:53 UTC
*** This bug has been confirmed by popular vote. ***
Comment 3 Andreas Pakulat 2008-06-29 19:46:30 UTC
this won't happen anytime soon unless someone picks up the existing codebase at svn://anonsvn.kde.org/home/kde/trunk/playground/devtools/kdevelop4-extra-plugins/python
Comment 4 Andreas Pakulat 2013-04-07 22:48:07 UTC
Move bugs in preparation of closing the component