question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect auto-indentation

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Nov 23, 2016

Yep, I think so too. Thanks for working on these issues 😃

0reactions
rlaverdecommented, Nov 23, 2016

@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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

incorrect auto-indent behavior - Vi and Vim Stack Exchange
In some very specific scenarios, the auto indenter has almost unexplainable behavior that is very annoying. Example with haskell MultiWayIf ...
Read more >
Vim autoindent indents incorrectly - Stack Overflow
I have a ton of directives in my vimrc to try and stop all kinds of autoindentation, but much to my irritation, the...
Read more >
Incorrect auto indent YAML files · Issue #43424 - GitHub
The problem is caused by the "editor.autoIndent" feature. It results in different behaviour when indentationRules are defined vs. undefined.
Read more >
Incorrect auto indentation inside lambda
When the option Within parentheses, align new lines when I type them under Text Editor -> C/C++ -> Code Style -> Formatting ->...
Read more >
Tree-sitter auto indent problem : r/neovim - Reddit
I have been looking for a solution to my problem where auto indenting does not work when tree-sitter is enabled. Is there any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found