[Eric] Autocompletion behaviour

Alex Gerhardt-Bourke agerhbour at hotmail.com
Mon Oct 22 05:54:58 BST 2018


I think I am getting to the bottom of this. It seems that autocomplete only works properly for the modules installed in the conda environment pointed to under Preferences->Debugger->Python3->Python 3 Virtual Environment.
Choosing the debugger for the project under Project->Debugger->Debugger Properties… is not sufficient, this is what I had done earlier and not gotten any results.

Detlev, perhaps in its current state, plug-ins do not check to see if an alternative debugger is set in the project settings?

Alex.
________________________________
From: Eric <eric-bounces at riverbankcomputing.com> on behalf of Alex Gerhardt-Bourke <agerhbour at hotmail.com>
Sent: Monday, October 22, 2018 9:55:45 AM
To: Christos Sevastiadis; Eric at riverbankcomputing.com
Subject: Re: [Eric] Autocompletion behaviour

Thankyou for trying that out for me. After reading what you wrote, I tried installing the module into various conda environments.
Installing jieba into the base environment did not help the plugin at all, but installing it into my eric6 environment did help the plugin find the module objects.
This is very irritating – I tend to use environments pretty extensively, having a new environment for every project. I will play around with more settings and see if I can get the plugins working with conda environments and report back on any findings.

Thanks again for your help.

________________________________
From: Eric <eric-bounces at riverbankcomputing.com> on behalf of Christos Sevastiadis <csevast at auth.gr>
Sent: Monday, October 22, 2018 4:05:49 AM
To: Eric at riverbankcomputing.com
Subject: Re: [Eric] Autocompletion behaviour

Alex,

I installed the jieba module either to test it. Anyway, with any imported module in my current Project, typing the name of the module or typing the name of an imported object from a module, installed in the environment or saved in my project's path, the Autocompletion lists the correct results. Let say, typing "jieba." lists jieba objects. If I type something that it is not included in the objects attributes then the Autocompletion list is populated with matches from other imported objects. Sometimes it needs some time the modules to be read. When you are changing the settings in preferences I suggest you to close and open again your project. Also, I suppose that you selected something in the "Project Type" in the "Project Properties". In my case I have selected "PyQt5 GUI", for which I selected the Python-3.7, Python-3.6 and PyQt5 APIs from "Add from installed APIS" in Settings.Preferences.Editor.APIs, for Python3 Language and "PyQT5 GUI" "Project Type". In my Python setup I use the base Conda environment for development and a created one for my Eric installation. I haven't tried to use another Conda environment, different than the base, for development.

Each Autocompletion list entry has an icon on the beginning - boxes in blue and yellow, a notepad with a pen etc. Unfortunately I don't know how to interpret them exactly but only suggestions I can do.

Christos

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/eric/attachments/20181022/f58a7811/attachment.html>


More information about the Eric mailing list