Code completion in the Editor doesn't work properly, unlike in the IPython console
See original GitHub issueFrom marushk…@gmail.com on 2015-02-06T08:44:55Z
Spyder Version: 2.4.0dev Python Version: 3.4.1 Qt Version : 4.8.6, PyQt4 (API v2) 4.10.4 on Windows pyflakes >=0.6.0: 0.7.3 (OK) pep8 >=0.6 : 1.4.6 (OK) IPython >=1.0 : 2.3.1 (OK) zmq >=2.1.11 : 14.4.1 (OK) pygments >=1.6 : 2.0.1 (OK) pandas >=0.13.1 : 0.14.1 (OK) sphinx >=0.6.6 : 1.2.3 (OK) jedi >=0.8.1 : 0.8.1-final0 (OK) rope >=0.9.2 : 0.9.4-1 (OK) matplotlib >=1.0: 1.4.0 (OK) sympy >=0.7.0 : 0.7.5 (OK) pylint >=0.25 : 1.4.1 (OK)
What steps will reproduce the problem?
- Import module
- Create a local variable using class from the module
- Write the name of the variable, put the dot and call the autocompletion (TAB or CTRL+SPACE)
What is the expected output? What do you see instead?
In the editor: I expected popup box with available methods and members, but it don’t appear. In the console: All is OK.
Please provide any additional information below
I tried numpy and cv2:
import numpy as np # 'imp' completion works, 'num' completion works
arr = np.array([1,2,3,4,5]) # 'np.' completion works
arr. # completion don't work
import cv2
cap = cv2.VideoCapture(0) # 'cv2.' completion works
cap. # completion don't work
Same code in console work fine. I use Anaconda and last spyder version from bitbucket and run it like follow: “python bootstrap.py --debug” When I call completion for variable arr. or cap. I got next debug output: completions request: [] completions request from jedi complete: “[]” in 0.1 sec completions request from rope complete: “[]” in 0.2 sec got timeout
_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2162_
Issue Analytics
- State:
- Created 9 years ago
- Comments:44 (21 by maintainers)
@stonebig @bcolsen removing enum34 did the trick.
This is really cool!! Thanks a lot for taking the time to look into it.
It’d be great if you could have a patch for Spyder before January 7, which is the feature freeze date for Spyder 3.1 😃