Fork me on GitHub
#clj-kondo
<
2022-03-25
>
Maris13:03:07

kondo complains about clojure 1.11 functions in emacs

Maris13:03:35

I added clojure dependency to :dev profile

Maris13:03:12

It worked only for command line

Maris14:03:02

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

Maris14:03:33

I am using flycheck-clj-kondo

borkdude14:03:31

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

Maris14:03:50

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

Maris14:03:23

parse-double
^ unresolved symbol

borkdude14:03:43

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

Maris14:03:17

clj , [clj-kondo "2022.03.09"]

Maris14:03:51

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

Maris14:03:08

to my dev profile in project.clj

borkdude14:03:25

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

borkdude14:03:49

can you do $ clj-kondo --version ?

Maris14:03:52

ah that explains it, clj-kondo v2021.04.23

Maris14:03:58

I thought it would use version from project.clj :man-facepalming:

borkdude14:03:28

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

👍 1