Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings related to clojure 1.11 clojure.core/parse- functions when using clojure 1.10.3 #1619

Closed
lassemaatta opened this issue Mar 18, 2022 · 1 comment

Comments

@lassemaatta
Copy link

version

clj-kondo v2022.03.09

platform

Command line clj-kondo running on Linux archlinux 5.16.14-arch1-1 #1 SMP PREEMPT Fri, 11 Mar 2022 17:40:36 +0000 x86_64 GNU/Linux.

problem

clj-kondo generates warnings about functions like parse-long, parse-double as these are present in clojure 1.11. However, this also happens if a project uses earlier clojure versions (e.g 1.10.3), which do not have these functions.

repro

See sample repository. Supplied lint.sh can be used to build cache and lint.

src/kondo_test/core.clj:4:1: warning: parse-long already refers to #'clojure.core/parse-long
src/kondo_test/core.clj:8:1: warning: parse-double already refers to #'clojure.core/parse-double
src/kondo_test/core.clj:12:1: warning: parse-uuid already refers to #'clojure.core/parse-uuid
src/kondo_test/core.clj:20:13: error: Unresolved symbol: parse-int
linting took 7ms, errors: 1, warnings: 3

expected behavior

No warning should be generated for these functions.

@borkdude
Copy link
Member

borkdude commented Mar 18, 2022

Ah I see yeah. This is probably a won't fix as there is a list of clojure vars built-in independent of version and it's already bumped to 1.11. Just future-proof your repo using :refer-clojure :exclude [parse-long].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants