[Eric] Autocompletion behaviour

Detlev Offenbach detlev at die-offenbachs.de
Sat Oct 20 17:43:08 BST 2018


What is jieba? Where is it installed with respect to the project? It is hard 
to guess, what the situation is on your system.

Detlev

Am Samstag, 20. Oktober 2018, 16:28:50 CEST schrieb Alex Gerhardt-Bourke:
> [cid:image001.png at 01D468C3.ED0E5D40]
> 
> 
> 
> [cid:image002.png at 01D468C4.0EE2CB90]
> 
> 
> 
> Despite having the plug-ins enabled and APIs installed, this is how
> autocomplete is currently behaving. One screenshot shows that functions
> from other modules are showing up when they shouldn’t, and as
> cut_for_search is not present we also see that the functions from the jieba
> module are not showing up.
> 
> 
> 
> This doesn’t seem like desired behavior at all so really appreciate any help
> getting to the bottom of this.
> 
> 
> 
> Alex.
> 
> 
> 
> ________________________________
> From: Detlev Offenbach <detlev at die-offenbachs.de>
> Sent: Saturday, October 20, 2018 10:10:52 PM
> To: Eric at riverbankcomputing.com
> Cc: Alex Gerhardt-Bourke
> Subject: Re: [Eric] Autocompletion behaviour
> 
> Hi,
> 
> that seems to be correct. The eric assistant will use the same installed API
> files (see APIs config page). Additionally, it will extract APIs from a
> project once you open it. The rope plug-in determines completions and
> calltips dynamically for the opened project. The jedi plug-in should do
> this for random files (Tobias knows better on this).
> 
> Detlev
> 
> Am Samstag, 20. Oktober 2018, 15:07:20 CEST schrieb Alex Gerhardt-Bourke:
> > Hi Detlev,
> > 
> > 
> > 
> > I did install the qscintilla API, but didn’t realise I needed to for eric
> > Assistant. Now checking, there don’t seem to be any new APIs to install. I
> > installed the plugins as user plugins and searching for all .api files in
> > the user plugins install directory doesn’t return any api files for
> > anything other than various python versions, QScintilla2, and PyQt.
> > 
> > 
> > 
> > Alex.
> > 
> > 
> > 
> > ________________________________
> > From: Detlev Offenbach <detlev at die-offenbachs.de>
> > Sent: Saturday, October 20, 2018 8:58:37 PM
> > To: Alex Gerhardt-Bourke
> > Cc: eric at riverbankcomputing.com
> > Subject: Re: [Eric] Autocompletion behaviour
> > 
> > Hi Alex,
> > 
> > did you install API files (for eric Assistant and QScintilla completers)
> > and selected the options that suit your needs? Maybe (partial)
> > screenshots may help to illustrate the issue.
> > 
> > Detlev
> > 
> > Am Samstag, 20. Oktober 2018, 14:51:50 CEST schrieb Alex Gerhardt-Bourke:
> > > Hi Detlev,
> > > 
> > > 
> > > 
> > > I saw the new config pages for the new plug-ins and have enabled them
> > > all,
> > > but I still don’t get the desired results. Behaviour is still as
> > > described
> > > in my last email.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > ________________________________
> > > From: Detlev Offenbach <detlev at die-offenbachs.de>
> > > Sent: Saturday, October 20, 2018 6:52:46 PM
> > > To: Eric at riverbankcomputing.com
> > > Cc: Alex Gerhardt-Bourke; Tobias Rzepka; eric at riverbankcomputing.com
> > > Subject: Re: [Eric] Autocompletion behaviour
> > > 
> > > Am Samstag, 20. Oktober 2018, 06:31:32 CEST schrieb Alex Gerhardt-
Bourke:
> > > > Hi All,
> > > > 
> > > > I have installed the three other Autocompletion tools – eric
> > > > assistant,
> > > > jedi, and Rope; none of them seem are currently showing
> > > > autocompletions
> > > > for
> > > > imported modules. For example, I have installed and imported a module
> > > > called jieba, typing “jieba.” and then pressing ctrl+space shows
> > > > nothing.
> > > > Starting to type directly after typing “jieba.” shows matches from
> > > > other
> > > > modules, but none from jieba. For example, typing jieba.cut brings
> > > > many
> > > > matches from PyQt5 and eric6, but none from jieba. The function
> > > > cut_for_search from jieba doesn’t show up at all.
> > > > 
> > > > Is there some configuration I have missed?
> > > 
> > > After the installation of these plug-ins, you will find additional
> > > configuration pages for auto completion and call tips. On these pages
> > > you
> > > have to enable the modules you want to want to get support from. You
> > > should
> > > look at "Mouse Click Handlers" as well. With that you can configure a
> > > navigation feature (e.g. Ctrl+Click on a method usage jumps to the
> > > method
> > > definition).
> > > 
> > > Detlev
> > > 
> > > > ________________________________
> > > > From: Eric <eric-bounces at riverbankcomputing.com> on behalf of Alex
> > > > Gerhardt-Bourke <agerhbour at hotmail.com> Sent: Saturday, October 20,
> > > > 2018
> > > > 11:54:22 AM
> > > > To: Tobias Rzepka; eric at riverbankcomputing.com
> > > > Subject: Re: [Eric] Autocompletion behaviour
> > > > 
> > > > Hi Tobias,
> > > > 
> > > > Thanks for that, that’s exactly what I needed. It seems as though the
> > > > checkbox works opposite to how it should! Next time I’ll be sure to
> > > > check
> > > > all the mouse hover over texts.
> > > > 
> > > > Christos, thanks for your recommendations on other plugins. I’m still
> > > > familiarizing myself with Eric so didn’t know which functionalities
> > > > are
> > > > built-in and which are plug-ins.
> > > > 
> > > > Alex.
> > > > 
> > > > ________________________________
> > > > From: Eric <eric-bounces at riverbankcomputing.com> on behalf of Tobias
> > > > Rzepka
> > > > <tobias.rzepka at gmail.com> Sent: Saturday, October 20, 2018 4:11:02 AM
> > > > To: eric at riverbankcomputing.com
> > > > Subject: Re: [Eric] Autocompletion behaviour
> > > > 
> > > > 
> > > > Hello Alex,
> > > > 
> > > > you can configure it under Settings -> Preferences -> Editor ->
> > > > Autocompletion -> QScintilla. Keep the first checkbox ("Show single")
> > > > unchecked. If you stay a little while over the text, you'll see a
> > > > tooltip
> > > > with a good hint about the function of the specific setting.
> > > > 
> > > > You should also try out the eric plugins which support autocompletion.
> > > > I
> > > > prefer jedi, but you can also choose Eric assistant or rope (or even
> > > > all
> > > > of
> > > > them together).
> > > > 
> > > > Tobias
> > > > 
> > > > Alex Gerhardt-Bourke schrieb am 19.10.2018 um 05:46:
> > > > Is there a way to change the behavior of autocompletion so that eric
> > > > never
> > > > forces a match, but still displays the drop-down suggestion list?
> > > > 
> > > > For further clarification, my current experience with autocomplete
> > > > turned
> > > > on is that if there is only one match, the match will automatically
> > > > fill,
> > > > if there is more than one match, a drop-down of current matches will
> > > > display. I like the drop down but do not like the automatic fill.
> > > > 
> > > > 
> > > > I am also wondering if it is possible, and if so how, to get
> > > > autocomplete
> > > > suggestions from imported modules outside of the python standard
> > > > library.
> > > > 
> > > > Regards,
> > > > Alex.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > Eric mailing list
> > > > Eric at riverbankcomputing.com<mailto:Eric at riverbankcomputing.com>
> > > > https://www.riverbankcomputing.com/mailman/listinfo/eric
> > > 
> > > --
> > > Detlev Offenbach
> > > detlev at die-offenbachs.de
> > 
> > --
> > Detlev Offenbach
> > detlev at die-offenbachs.de
> 
> --
> Detlev Offenbach
> detlev at die-offenbachs.de

-- 
Detlev Offenbach
detlev at die-offenbachs.de




More information about the Eric mailing list