We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
schema.core/defn
version
2023.03.17
macro usage
Maybe? schema.core/defn is handled by clj-jondo built-in so could be related.
platform
JVM
editor
reproducible with lsp as well
problem
for schema.core/defn when you have a map with odd pairs all analysis of that function are lost:
This works, returning all keywods, var-usages and other analysis as expected, even with invalid map (common when you are writing code and completing):
(defn foo [] (str {:a 1 :b}))
This doesn't return any analysis inside foo:
(schema.core/defn foo [] (str {:a 1 :b}))
more context
repro
clj -Sdeps '{:deps {clj-kondo {:mvn/version "2023.03.17"}}}' -m clj-kondo.main --config '{:config-paths ^:replace [] :output {:format :json :analysis {:keywords true}}}' --lint - <<< '(ns foo (:require [schema.core :as s])) (s/defn foo [] (str {:a 1 :b}))' |jq .
expected behavior
Expect to return the same analysis if the function would be a clojure.core/defn
I can find some time to help if guide me to where fix that
The text was updated successfully, but these errors were encountered:
d12090d
Thank you very much! works like a charm
Sorry, something went wrong.
No branches or pull requests
version
2023.03.17
macro usage
Maybe? schema.core/defn is handled by clj-jondo built-in so could be related.
platform
JVM
editor
reproducible with lsp as well
problem
for
schema.core/defn
when you have a map with odd pairs all analysis of that function are lost:This works, returning all keywods, var-usages and other analysis as expected, even with invalid map (common when you are writing code and completing):
This doesn't return any analysis inside foo:
more context
repro
expected behavior
Expect to return the same analysis if the function would be a clojure.core/defn
I can find some time to help if guide me to where fix that
The text was updated successfully, but these errors were encountered: