[Eric] About Rope AutoCompletion
Detlev Offenbach
detlev at die-offenbachs.de
Tue Apr 8 18:40:42 BST 2008
On Dienstag, 8. April 2008, objectref wrote:
> Hi,
>
>
>
> Latest Eric snapshot states that "snapshot-20080406 of the rope refactoring
> plugin released. It is an update to rope 0.8.0 and adds an alternative
> autocompletion provider for Python. "
>
> Does that mean that I can use an alternative autocompletion mechanism in
> Eric ? I saw that I can select it from Settings/Refactoring (Rope)/Enable
> Autocompletion. What are the main differences from Eric default
> autocompletion mechanism at this time ?
>
>
>
> Thanks,
>
>
>
> Anthony
Default autocompletion is that provided by QScintilla2, which is based on API
files ot the current document. The alternative a/c provided by the rope
plugin works by analysing the source code. The way I coded the plugin is,
that if rope a/c is activated, that is tried first. If rope doesn't give any
completion, it falls back to the default QScintilla2 based a/c. The editor
component in eric4 provides a hook method, which can be set by a plugin. That
way, plugins can provide alternative a/c providers. The contribution of an
even better a/c provider would be appreciated.
Regards,
Detlev
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the Eric
mailing list