Skip to content

Refactoring with rope removes code when no newline at EOF #695

Closed

Description

Environment data

VS Code version: 1.19.3
Python Extension version: 2018.1.0
Python Version: 3.6.4 (Anaconda)
OS and version: macOS 10.13.3
Rope version: 0.10.7

Actual behavior

When refactoring code that's missing a newline at the end of file, the last line of code gets deleted.

Expected behavior

Proper refactoring, without deleting the last line.

Steps to reproduce:

See the gif.
rope-new-line

Activity

  1. added
    bug
    on Feb 2, 2018
  2. ericsnowcurrently commented on Feb 12, 2018

    @ericsnowcurrently

    Folgert Karsdorp (@fbkarsdorp), thanks for letting us know about this problem. I've been able to duplicate it using rope 0.10.7 (the latest). We'll look into the cause (and the fix).

  3. locked as resolved and limited conversation to collaborators on Jul 10, 2018
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions