Skip to content

Rename variable with Parinfer breaks code #2106

@luontola

Description

@luontola

In the following code, when you do Refactor > Rename on the foo variable and rename it to bar while Parinfer is enabled, then it produces the following broken code.

Before:

(ns example)

(let [foo (map (fn [x]
                 {:x x})
               [])])

After:

(ns example)

(let [bar (map (fn [x])
               {:x x})
      []])

Cursive version: v1.8.1-eap2-2018.3
IDEA version: IntelliJ IDEA 2018.3.4 (Ultimate Edition) Build #IU-183.5429.30

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMarks issues describing bugsreleasedMarks issues which have had the fixes released in a stable build

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions