cursive icon indicating copy to clipboard operation
cursive copied to clipboard

required clojure.test gets removed on "Optimize imports"

Open MrGung opened this issue 3 years ago • 0 comments

Using 1.12.2-eap6-2021.3 with Clojure Extras 0.6.0 (and babashka 0.7.7).

Having

(ns jenkins.api-test
  (:require
    [babashka.curl :as curl]
    [jenkins.api :as sut]
    [clojure.test :refer [testing is run-tests deftest]]))


(deftest assert-jenkins-credentials
  (testing "valid credentials"

When I do a "Optimize Imports" - I get

(ns jenkins.api-test
  (:require
    [babashka.curl :as curl]
    [jenkins.api :as sut]))


(deftest assert-jenkins-credentials
  (testing "valid credentials"

i.e. the clojure.test-namespace gets removed.

On another machine I don't have that phenomenon.

I also disabled Clojure Extras - the namespace was still removed.

MrGung avatar Mar 14 '22 12:03 MrGung