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

warning: Unresolved var: gen/fmap in cljc files #2384

Closed
1 task done
stijnopheide opened this issue Aug 29, 2024 · 0 comments
Closed
1 task done

warning: Unresolved var: gen/fmap in cljc files #2384

stijnopheide opened this issue Aug 29, 2024 · 0 comments

Comments

@stijnopheide
Copy link

  • I have read the Clojure etiquette and will respect it when communicating on this platform.

version

2024.08.01

platform

JVM and JS

problem

In a .cljc file, clojure specs gen/fmap is indicated as an unresolved var.

repro

file break.clj

(ns break
  (:require
    [clojure.spec.alpha :as s]
    #?(:clj  [clojure.spec.gen.alpha :as gen]
       :cljs [cljs.spec.gen.alpha :as gen])))

(s/def ::break
  (s/with-gen
    nat-int?
    #(gen/fmap
       inc
       (s/gen integer?))))

run clj-kondo

clj-kondo --lint break.cljc
break.cljc:10:7: warning: Unresolved var: gen/fmap
linting took 15ms, errors: 0, warnings: 1

config

default

expected behavior

No warning is issued.

@github-project-automation github-project-automation bot moved this to Needs triage in clj-kondo Aug 31, 2024
@borkdude borkdude moved this from Needs triage to High priority (next release) in clj-kondo Aug 31, 2024
@github-project-automation github-project-automation bot moved this from High priority (next release) to Done in clj-kondo Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant