clj-kondo 2022-03-25

kondo complains about clojure 1.11 functions in emacs

I added clojure dependency to :dev profile

It worked only for command line

Is it possible to get rid of parse-double warnings in emacs ?

I am using flycheck-clj-kondo

Can you be more specific, using a repro, e.g. example.clj?

(defn- ->rounded-int [s]
  (some-> s parse-double Math/round))

parse-double
^ unresolved symbol

Which version of clj-kondo are you using and is this in .cljs or .clj?

clj , [clj-kondo "2022.03.09"]

It works from command line, after I added [org.clojure/clojure "1.11.0"]

to my dev profile in project.clj

are you sure that flycheck-clj-kondo is using the same version as you're using on the command line?

can you do $ clj-kondo --version ?

ah that explains it, clj-kondo v2021.04.23

I thought it would use version from project.clj 🤦‍♂️

:-D glad it's solved. no it uses the binary

👍 1