Problem in autocompletion of class attributes in Spyder 4 editor
See original GitHub issueIssue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder
(orpip
, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole
(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset
- Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
On Spyder 3.6.6, it was possible to watch the attributes and methods of a loaded object in the editor (thanks to rope and jedi). With python 4.0.0, it is not possible to visualize them. I’m not sure if this is a problem from Kite App or another change in the Spyder 4.0.0 new Completion and linting functionalities. I tried several configurations (by changing Completion and Linting parameters) to retrieve my previous Spyder user experience but without success. I don’t see what’s the problem here.
Note : I’m aware and tried to configure Adding libraries from PYTHONPATH to the Kite index . But it does not seem to be the problem.
What steps reproduce the problem?
Simply create file myclass.py with a class with one attribute:
class MyClass():
def __init__(self,param):
self.param=param
Then import myclass and create an object A with param=10, for instance:
import myclass
A=myclass.MyClass(10)
A.
What is the expected output? What do you see instead?
On Spyder 4.0.0 editor autocompletion after the dot shows ‘ArithmeticError; AssertionError;…’ while in Spyder 3.6 editor autocompletion suggested my usual methods and attribute loaded in My_Class. Here My_Class.param.
PS: I did not produce a screenshot since autocompletion suggestions disappear when prt scr
Versions
- Spyder version: 3.3.6 and 4.0.0
- Python version: 3.7.3
- Qt version: 5.9.7
- PyQt version: 5.9.2
- Operating System name/version: Ubuntu 18.04.3
Dependencies
cloudpickle >=0.5.0 : 1.0.0 (OK) pygments >=2.0 : 2.4.0 (OK) qtconsole >=4.6.0 : 4.6.0 (OK) nbconvert >=4.0 : 5.5.0 (OK) sphinx >=0.6.6 : 2.0.1 (OK) pylint >=0.25 : 2.3.1 (OK) psutil >=0.3 : 5.6.2 (OK) qtawesome >=0.5.7 : 0.5.7 (OK) qtpy >=1.5.0 : 1.7.1 (OK) pickleshare >=0.4 : 0.7.5 (OK) zmq >=17 : 18.0.0 (OK) chardet >=2.0.0 : 3.0.4 (OK) numpydoc >=0.6.0 : 0.9.1 (OK) spyder_kernels >=1.8.1;<2.0.0: 1.8.1 (OK) qdarkstyle >=2.7 : 2.7 (OK) atomicwrites >=1.2.0 : 1.3.0 (OK) diff_match_patch >=20181111 : 20181111 (OK) intervaltree : None (OK) watchdog : None (OK) keyring : None (OK) pexpect >=4.4.0 : 4.7.0 (OK) pympler : None (OK) sympy >=0.7.3 : 1.4 (OK) cython >=0.21 : None (NOK) IPython >=4.0 : 7.5.0 (OK) matplotlib >=2.0.0 : 3.1.0rc2 (OK) pandas >=0.13.1 : None (NOK) numpy >=1.7 : 1.16.3 (OK) scipy >=0.17.0 : 1.2.1 (OK) pyls >=0.31.2;<0.32.0 : 0.31.2 (OK) xdg >=0.26 : 0.26 (OK) rtree >=0.8.3 : 0.9.3 (OK)
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top GitHub Comments
I can confirm this problem still exist in 4.1.3. A minimal example would be:
even when requesting manually completion nothing happens.
I agree with you. I do apologize. Thank you for working on the fix. I am looking forward to it. I appreciate the work you guys do on Spyder. Regards, Uma Venkat, Karanam MSME, SUNY Buffalo +16476793681 Linkedin: https://www.linkedin.com/in/umavenkat-karanam-0568341b/
On Thu, Jun 25, 2020 at 5:22 PM Carlos Cordoba notifications@github.com wrote: