Code completion for Python builtin types?

Get help with the installation and running of the Zeus IDE. Please do not post bug reports or feature requests here. When in doubt post your question here.
Post Reply
Guest

Code completion for Python builtin types?

Post by Guest »

Is it possible to have code completion for Python builtin or imported classes?

For example if I write

Code: Select all

from ftplib import FTP
f = FTP('server')
f.
nothing happens.

Can we only have code completion for the classes defined in the same workspace?
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Can we only have code completion for the classes defined in the same workspace?
This is correct.

The intellisensing is driven from the ctags information (as displayed in the browser panel) which is automatically created and maintained as part of the workspace management. Thus for files not contained in the workspace no ctags information is produced and thus no intellisensing is available :(

There is a plan for Zeus to handle this type of secnario through the use of an additional utility program that would create a standalone browser information files. These information files could then be bound to the workspace or the document type to provide additional sources of intellisensing data. But this may well change once attempt is made to implement this new feature.

Cheers Jussi
amix

Language global auto-complete: Anytime soon?

Post by amix »

jussij wrote:There is a plan for Zeus to handle this type of secnario through the use of an additional utility program that would create a standalone browser information files. These information files could then be bound to the workspace or the document type to provide additional sources of intellisensing data. But this may well change once attempt is made to implement this new feature.
That would be lovely! Is this going to happen anytime soon ?
I think I will register (I am on evaluation) Zeus anyway, since I tested an earlier version, that I liked and did not find really good text-editors on Windows as of yet (neither on Linux, mind you :-() but Zeus is one of the best for this paltform. A very sympathic piece of software, it's fun to use it!

However, at the moment I must take care on to what spend my time. I am developing a major project in Python and need a "no thoughts on the IDE/Editor, just code!" type of environment. For Python, maybe ActiveState Komodo is the most satisfying, because it has all the Python intelligence inside. Still, I do not like to use different editors, I even hate using the inline text-widgets of most email-programs. I want one environment for editing text. Thus I have started changing some of the supplied zScripts. It seems to me, that adopting Zeus to the way I want it will take some time and so I am thinking on how to layout my efforts.

If Zeus would come with such a feature soon (and as far as I understood Komodo does not do this) I would write macros to implement intelligent Python coding into Zeus. Otherwise I will use Komodo for now, since I am in a hurry.

Thanks for this great editor. I feel it is being programmed with the love and passion of its author. That is nice to feel.
Guest

Post by Guest »

That would be lovely! Is this going to happen anytime soon?
This feature is currently being investigated and so far this investigation is progressing very well :) If the investigation continues to go well, this feature should make it into the next Zeus release, which is due out in about in about three to four months time.
Thanks for this great editor. I feel it is being programmed with the love and passion of its author. That is nice to feel.
Thank you for your kind words :D

Jussi
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

The latest Zeus release adds a Tags Database Builder feature, making it possible to create stand alone tags database files from third party source files.

So if you have access to the Python source files, you should be able to use this utility to create a Python tags database, attach it to the Zeus Python document type and with any luck it will give you intelli-sensing for the Python built-in functions.

For more information on how this might be done, consider this example on how to add intelli-sensing for C# an Mono using the sameTags Database Builder tool.

Cheers Jussi
Post Reply