Open alexandercampbell opened 2 weeks ago
This came up when I was editing imports in a namespace and deleted the closing paren by mistake.
Example input:
(ns example (:require [clojure.math :as math]) (doseq [i (range 100)] (println {:a i}))
Formatter output:
(ns example (:require [clojure.math :as math]))
From what I can tell, this bug will happily delete thousands of lines of source code.
This occurred on version v0.12.0 of the formatter.
Thank you for the report: this is definitely not great behavior or user experience. Similar to Issue #59, I think the tool should throw an error and communicate to the user that it encountered invalid code in cases like this.
This came up when I was editing imports in a namespace and deleted the closing paren by mistake.
Example input:
Formatter output:
From what I can tell, this bug will happily delete thousands of lines of source code.
This occurred on version v0.12.0 of the formatter.