Skip to content

Parinfer can break code on symbol rename refactoring by prematurely removing spaces #1359

@gnl

Description

@gnl

Here's the code I just encountered this with:

(s/defn compatible-units :- [sc/Unit]
  [quantity :- sc/Quantity
   all-units :- s/Bool]
  (if (not all-units)
.....

Trying to rename all-units to something in parinfer mode removes the space after not:

(if (notsomething)

Metadata

Metadata

Assignees

No one assigned

    Labels

    releasedMarks 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