Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

embedded try: except: moves indent one tab left #235

Open

Description

@syspect-tech

Prerequisites

Description

When making an indented try: except: statement auto-indent moves the except line one tab left.

Steps to Reproduce

  1. Create a loop.
  2. create a try/except with one statement on the same line as the try like: try: foo=bar
  3. Hit new line and create an except: when you press the : button, the line will move one tab to the left.

Expected behavior: line will not change tab indent

Actual behavior: line moves one tab indent to the left

Reproduces how often: always

Versions

mac and ubuntu 1.21 and 1.24

You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Activity

  1. syspect-tech commented on Feb 23, 2018

    @syspect-tech
    Author

    This has been discussed on the atom website discussion thread and confirmed reproduced by more than one person. https://discuss.atom.io/t/atom-1-20-1-line-tab-moving-when-editing-line-in-python-mac-os-high-sierra/52714/10. There is also video of another tab-indent problem which comes from if/elif lines on youtube here: https://www.youtube.com/watch?v=9LklzQ8n0hM. The problem was isolated to MagicPython package.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions