Hi Detlev,
Jieba is a module for parsing Chinese sentences, its functionality isnt really important, more so using it as an example to show that autocompletion plugins arent searching imported modules.
Heres another example using the os module
[cid:***@01D46923.A559E1D0]
While the curdir functions from os are showing, many functions from other modules that do not exist in os are showing up.
If I use an installed module outside of the standard python library, such as jieba, the jieba attributes dont show at all.
My current set up is I have eric6 installed in its own conda environment, and jieba installed in another conda environment. Note that I can run my project in eric6 using jieba, so eric knows where to find the jieba module.
Christos I tried to mimic your setup, infact my configurations were already as you described. Do you get the same output as I do in the picture attached?
Alex.
________________________________
From: Detlev Offenbach <***@die-offenbachs.de>
Sent: Sunday, October 21, 2018 12:43:08 AM
To: ***@riverbankcomputing.com
Cc: Alex Gerhardt-Bourke
Subject: Re: [Eric] Autocompletion behaviour
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:***@01D468C3.ED0E5D40]
>
>
>
> [cid:***@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 shouldnt, and as
> cut_for_search is not present we also see that the functions from the jieba
> module are not showing up.
>
>
>
> This doesnt seem like desired behavior at all so really appreciate any help
> getting to the bottom of this.
>
>
>
> Alex.
>
>
>
> ________________________________
> From: Detlev Offenbach <***@die-offenbachs.de>
> Sent: Saturday, October 20, 2018 10:10:52 PM
> To: ***@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 didnt realise I needed to for eric
> > Assistant. Now checking, there dont 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 doesnt return any api files for
> > anything other than various python versions, QScintilla2, and PyQt.
> >
> >
> >
> > Alex.
> >
> >
> >
> > ________________________________
> > From: Detlev Offenbach <***@die-offenbachs.de>
> > Sent: Saturday, October 20, 2018 8:58:37 PM
> > To: Alex Gerhardt-Bourke
> > Cc: ***@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 dont get the desired results. Behaviour is still as
> > > described
> > > in my last email.
> > >
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: Detlev Offenbach <***@die-offenbachs.de>
> > > Sent: Saturday, October 20, 2018 6:52:46 PM
> > > To: ***@riverbankcomputing.com
> > > Cc: Alex Gerhardt-Bourke; Tobias Rzepka; ***@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 doesnt 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-***@riverbankcomputing.com> on behalf of Alex
> > > > Gerhardt-Bourke <***@hotmail.com> Sent: Saturday, October 20,
> > > > 2018
> > > > 11:54:22 AM
> > > > To: Tobias Rzepka; ***@riverbankcomputing.com
> > > > Subject: Re: [Eric] Autocompletion behaviour
> > > >
> > > > Hi Tobias,
> > > >
> > > > Thanks for that, thats exactly what I needed. It seems as though the
> > > > checkbox works opposite to how it should! Next time Ill be sure to
> > > > check
> > > > all the mouse hover over texts.
> > > >
> > > > Christos, thanks for your recommendations on other plugins. Im still
> > > > familiarizing myself with Eric so didnt know which functionalities
> > > > are
> > > > built-in and which are plug-ins.
> > > >
> > > > Alex.
> > > >
> > > > ________________________________
> > > > From: Eric <eric-***@riverbankcomputing.com> on behalf of Tobias
> > > > Rzepka
> > > > <***@gmail.com> Sent: Saturday, October 20, 2018 4:11:02 AM
> > > > To: ***@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
> > > > ***@riverbankcomputing.com<mailto:***@riverbankcomputing.com>
> > > > https://www.riverbankcomputing.com/mailman/listinfo/eric
> > >
> > > --
> > > Detlev Offenbach
> > > ***@die-offenbachs.de
> >
> > --
> > Detlev Offenbach
> > ***@die-offenbachs.de
>
> --
> Detlev Offenbach
> ***@die-offenbachs.de
--
Detlev Offenbach
***@die-offenbachs.de