[Eric] Code completion's issue

zbyna zbynek.fiala at gmail.com
Fri Feb 27 21:56:01 GMT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

It would be great to add rope plugin autocompletion for eric6.

So here is the result of my "research":

I have tried
  - the general code, which was part of my previous messages
  - small PyQt4 application please see code:
https://github.com/spyder-ide/spyder/issues/2203
  - new style of PyQt4 signals please issue in:
https://github.com/spyder-ide/spyder/issues/2203 (in Spyder works with
rope (not with jedi)

- ----------------------------------------------------------------
IDE		general code	PyQt4	PyQt4-signals	Library
- ----------------------------------------------------------------
KDevelop	works		works	works		don't know
Spyder		works		works	works		rope
Spyder		works		works	fail		jedi
PyCharm		works		works	fail		don't know
PyDev		works		works	fail		don't know
WingIDE		works		works	fail		don't know
- ------------------------------------------------------------------

Spyder now uses both rope and jedi b/c as I read somewhere in reported
issues rope does not cope with opencv.

 zbyna



Dne 26.2.2015 v 19:41 Detlev Offenbach napsal(a):
> It is a pitty you moved on without going a bit deeper into this
> topic. If you had tested the other IDE auto completion you would
> have noticed, that they don't provide completions in situations
> where eric does. One such situation is writing PyQt4 or PyQt5 code.
> Because most of the Qt object rely on the presence of a
> QApplication object (i.e. an initialized Qt framework)
> instantiating and introspection of Qt objects won't work and that
> leads to no completions shown.
> 
> 
> 
> Unless the underlying libraries of the mentioned IDEs have changed
> in the last two months or so, that is true. If the described
> situation works I would like to get a short feedback about it.
> 
> 
> 
> In the past the rope plug-in for eric4 provided an alternative 
> completion provider. If there is interest in having it added to
> the rope-plugin for eric6 please let me know.
> 
> 
> 
> Regards,
> 
> Detlev
> 
> 
> 
> On Thursday 26 February 2015, 00:58:42 zbyna wrote:
> 
>> OK, it is a pity. For beginner as me is code completion very
>> important.
> 
>> I made a small research and this sort of autocompletion
> 
>> is possible manage with: Spyder, PyDev, WingIDE, Pydev, Kdevelop
>> and
> 
>> WingIDE.
> 
>> The best results I achieved with Spyder (rope library) and
>> Kdevelop .
> 
>> These two IDEs managed even to offer connect,disconnet and emit
>> for
> 
>> signals in Qt. Jedi library which is used experimentally in
>> Spyder
> 
>> 2.3.3 can not cope with signals at present. But both rope and
>> jedi
> 
>> treat example from my previous post well.
> 
>> As I said it is a pitty b/c Eric is a good IDE but according to
> 
>> autocompletion I have to move on.
> 
>> Good luck.
> 
>> 
> 
>> Dne 25.2.2015 v 18:43 Detlev Offenbach napsal(a):
> 
>>> Hi,
> 
>>> 
> 
>>> 
> 
>>> 
> 
>>> the auto-completion does not work dynamically, that is execute
>>> the
> 
>>> code in the background to determine an objects type and
>>> contents.
> 
>>> That is a known fact and will not be changed in the current
> 
>>> completion providers. However, I am willing to accept a
>>> plug-in
> 
>>> providing a more intelligent provider.
> 
>>> 
> 
>>> 
> 
>>> 
> 
>>> Detlev
> 
>>> 
> 
>>> On Wednesday 25 February 2015, 02:54:56 zbyna wrote:
> 
>>>> Hi,
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> I have following issue with autocompletion of classes:
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> There is a simple script which demonstates the matter:
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> class Rodic:
> 
>>>> 
> 
>>>> def __init__(self, jmeno):
> 
>>>> 
> 
>>>> self.jmenoRodice=jmeno
> 
>>>> 
> 
>>>> self.konstanta = "KOLKA"
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> def prvniMetoda():
> 
>>>> 
> 
>>>> print("PrvnĂ­")
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> def druhaMetoda():
> 
>>>> 
> 
>>>> print("Druhá")
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> class Potomek(Rodic):
> 
>>>> 
> 
>>>> def __init__(self, jmenoP, jmenoR):
> 
>>>> 
> 
>>>> super(Potomek, self).__init__(jmenoR)
> 
>>>> 
> 
>>>> self.jmenoPotomka=jmenoP
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> a = Rodic("JSEM RODIC a bez potomka ")
> 
>>>> 
> 
>>>> b = Potomek("JSEM POTOMEK b", "JSEM RODIC potomka b")
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> When I type a. I would expected all properties and methods
>>>> from
> 
>>>> 
> 
>>>> class Rodic. After typing b. the IDE should offer the same
>>>> list
> 
>>>> +
> 
>>>> 
> 
>>>> property jmenoPotomka from b. Eric offers nothing. At least
>>>> to me
> 
>>>> 
> 
>>>> :-)
> 
>>>> 
> 
>>>> I have tried Assistant plugin too:
> 
>>>> 
> 
>>>> all option checked (from API, Document, Project)
> 
>>>> 
> 
>>>> and "Search class hiearchy" checked too. Seems like this one
>>>> does
> 
>>>> not
> 
>>>> 
> 
>>>> work.
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> I am using :
> 
>>>> 
> 
>>>> Linux Mint 17.1
> 
>>>> 
> 
>>>> Python 3.4.0
> 
>>>> 
> 
>>>> Qt 5.4.0
> 
>>>> 
> 
>>>> PyQt 5.4
> 
>>>> 
> 
>>>> sip 4.16.5
> 
>>>> 
> 
>>>> QScintilla 2.8.4
> 
>>>> 
> 
>>>> WebKit 538.1
> 
>>>> 
> 
>>>> eric6 6.0.2 (rev. d311c814a5de)
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> Thanks for help
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> zbyna
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> 
> 
>>>> _______________________________________________
> 
>>>> 
> 
>>>> Eric mailing list
> 
>>>> 
> 
>>>> Eric at riverbankcomputing.com
> 
>>>> 
> 
>>>> http://www.riverbankcomputing.com/mailman/listinfo/eric
> 
>>> 
> 
>>> --
> 
>>> 
> 
>>> Detlev Offenbach
> 
>>> 
> 
>>> detlev at die-offenbachs.de
> 
>> 
> 
>> _______________________________________________
> 
>> Eric mailing list
> 
>> Eric at riverbankcomputing.com
> 
>> http://www.riverbankcomputing.com/mailman/listinfo/eric
> --
> 
> Detlev Offenbach
> 
> detlev at die-offenbachs.de
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJU8OftAAoJEHxvTZ+FZ7QnJMUH/jCe1d+H73eVziSwAiujvm7w
QZtm/Vihfi9QFrzLXcSHIYBSNMzT3OHrLxy1ch4n1jK55uSDx0fHyYL/zUnesIVV
QYYSTdvwJI9sTeiBgWPm2vmztCeVFUIlbe6lEHhdy/aHvDaafRCedpJTqJaE3Pzw
edg2U44aGSWV7LtyZu0UQtXZt0ldbOlxis3cb7+PPVVTSgyedHvxllHPQ6xtrDen
sOOQnfRLO40mjUxdhD+25j20Mzi32mkQ18PoS3VtAq3L8f+4XW4Bv7gg1MC8wc85
xsqTptOxMSyob3rI6STRVLlWavS1MgVckVW2VyBxVOkWfjh8Wf2T6x6K3v4JA4s=
=0/ow
-----END PGP SIGNATURE-----


More information about the Eric mailing list