cursive icon indicating copy to clipboard operation
cursive copied to clipboard

Unused require removal is broken with Parinfer

Open axelarge opened this issue 3 years ago • 0 comments

Whenever an unused require is deleted, it indents lines after the next line by one space, nesting them under the first line's vector. Naturally, this causes compilation errors. This only happens in Parinfer mode.

;; Before
(ns my.namespace
  (:require [my.foo :as a]
            [my.bar :as b] ;; unused and will get removed by "optimize imports" 
            [my.baz :as c]
            [my.quux :as d]
            [my.other :as e]))

;; After
(ns my.namespace
  (:require [my.foo :as a]
            [my.baz :as c
             [my.quux :as d]
             [my.other :as e]]))

axelarge avatar Feb 24 '22 22:02 axelarge