spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.34k stars 1.62k forks source link

Autocomplete for user defined variables does not work #1708

Closed spyder-bot closed 9 years ago

spyder-bot commented 9 years ago

From dieg...@gmail.com on 2014-01-28T10:44:20Z

Autocomplete does not work for user defined variables in the editor. It does work when calling functions of imported functions. For example, if I define a variable foo in line 1, and type "fo" in line 2, there is no autocomplete or tab-complete to get "foo". However if I do import numpy as np and np. a dropdown menu with the functions under numpy appear.

Autocomplete for user defined variables does work in interactive console.

Please note that reporting bugs from Spyder's help menu ("?" > "Report issue...") will fill version details for Spyder, Python and Qt in this description for you.

What steps will reproduce the problem?

  1. create a variable
    1. in the next line try to autocomplete the variable by writing the first letters of the variable 3. What is the expected output? What do you see instead? I am expecting for user defined variables to autcomplete. Only see this for methods from modules What version of the product are you using? On what operating system? Spyder 2.2.5 rope 0.9.4 python 2.7.3 Mac OS X 10.6.8

Please provide any additional information below

.

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1708

spyder-bot commented 9 years ago

From contrebasse on 2014-01-29T01:24:59Z

I can't reproduce it, it works as expected for me (Same spyder ad rope version but on windows with python 2.7.5)

spyder-bot commented 9 years ago

From dieg...@gmail.com on 2014-02-01T20:51:40Z

OK. I reinstalled my version of spyder and control + space gives me local variable completion. Is there anyway to change the key binding so that TAB gives me autocomplete? Thanks.

spyder-bot commented 9 years ago

From ccordoba12 on 2014-02-07T05:28:36Z

TAB is going to do code-completion in 2.3 (which is in beta right now).

Status: Invalid