Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect auto-indentation #3473

Closed
lxkain opened this issue Sep 28, 2016 · 7 comments
Closed

Incorrect auto-indentation #3473

lxkain opened this issue Sep 28, 2016 · 7 comments

Comments

@lxkain
Copy link

lxkain commented Sep 28, 2016

Description

What steps will reproduce the problem?

  1. write: s = listener.loc[(listener['listener'] == l) & (listener['session'] == 1)]['sentence_id']
  2. press ENTER

What is the expected output? What do you see instead?
The editor indents the next line, but it shouldn't

Please provide any additional information below

Version and main components

  • Spyder Version: 3.0.0
  • Python Version: 3.4.5
  • Qt Versions: 4.8.7, PyQt4 (API v2) 4.11.4 on Darwin

Dependencies

pyflakes >=0.6.0 :  1.3.0 (OK)
pep8 >=0.6       :  1.7.0 (OK)
pygments >=2.0   :  2.1.3 (OK)
qtconsole >=4.2.0:  4.2.1 (OK)
nbconvert >=4.0  :  4.2.0 (OK)
pandas >=0.13.1  :  0.18.1 (OK)
numpy >=1.7      :  1.11.1 (OK)
sphinx >=0.6.6   :  1.4.6 (OK)
rope >=0.9.4     :  0.9.4-1 (OK)
jedi >=0.8.1     :  0.9.0 (OK)
psutil >=0.3     :  4.3.1 (OK)
matplotlib >=1.0 :  1.5.1 (OK)
sympy >=0.7.3    :  1.0 (OK)
pylint >=0.25    :  1.6.4 (OK)

@ccordoba12
Copy link
Member

Where do you expect the next line to be indented?

@lxkain
Copy link
Author

lxkain commented Sep 29, 2016

I see that I was unclear about it. The editor indents this line as if I hadn't close one of the ] brackets. My expectation is that the cursor should go right underneath the first character of the previous line (i.e. unchanged indentation level).

@ccordoba12 ccordoba12 changed the title incorrect auto-indentation Incorrect auto-indentation Nov 1, 2016
@ccordoba12 ccordoba12 added this to the v3.1 milestone Nov 1, 2016
@ccordoba12
Copy link
Member

ccordoba12 commented Nov 1, 2016

@rlaverde, since you worked on something similar before, please take a look at this one.

@lhorstm
Copy link

lhorstm commented Nov 1, 2016

I'm having the same Issue! Whenever I type a closing bracket, parenthesis, etc. on a line that was auto indented, the next line is also auto-indented (even though it shouldn't be)

@ccordoba12
Copy link
Member

@rlaverde, please solve this one this week.

@rlaverde
Copy link
Member

@ccordoba12 I'm working on it, I think the logic related to indentation and opening-closing brackets have to be changed (issue #3700 is also related to this, if not the same)

@ccordoba12
Copy link
Member

Yep, I think so too. Thanks for working on these issues :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants