I've started working on a Code Completion plugin for Python. Sources are here:
svn checkout svn://svn.berlios.de/cbilplugin/trunk/PythonCodeCompletionBuild Instructions for Linux and Windows
The project files (respectively PythonCodeCompletion-unix.cbp and PythonCodeCompletion.cbp) will create a packaged cbPlugin, that you can install from Plugins->Manage Plugins
1. Get the sources, using the command above.
2. Make sure you have codeblocks-dev package installed and jedi
(and python, of course)
3. In Code::Blocks, open the project file and build target All
4. You should see PythonCodeCompletion.cbplugin in the root of the project folder, install it from Plugins -> Manage PluginsFeatures
The current version supports the features of jedi
for code assist, providing completion popups and calltips. Todo
* Better integration with C::B (depends on Alpha's progress with CodeCompletion overhaul)
* Symbol browser
* Configuration optionsScreenshots How it's done
This plugin uses jedi, a python library, as the engine for the code completion running in a separate process and communicates with it via XMLRPC. Python provides a lot of nice introspection features making it easy to parse python source and extract symbols (even from the builtin libs) that jedi takes advantage of. Jedi improves on the limitations of rope, the library that was being used in an earlier version of this plugin.