Skip to content

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

Closed
@fbkarsdorp

Description

@fbkarsdorp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions