-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Handling of reader conditional after ^ #970
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
#785 and this one seem to be duplicates? |
Oh may be so. Sorry about that! |
No worries. Feel free to close one of your liking :) |
@sogaiu This has already been fixed in a previous release of clj-kondo. Please report if you find that this isn't the case with the newest version of clj-kondo. |
@borkdude I tried with 89544bd but still get the same output:
This was with a local build -- perhaps I didn't get that right or messed up in some other way... |
You need to set either lang cljc or lint a cljc file.
On Thu, 16 Dec 2021 at 00:58, sogaiu ***@***.***> wrote:
@borkdude <https://github.com/borkdude> I tried with 89544bd
<89544bd>
but still get the same output:
$ clj-kondo --lint -
^#?(:clj :a :cljr :b) [:smile]
<stdin>:1:4: error: keyword :clj is called with 3 args but expects 1 or 2
linting took 3548ms, errors: 1, warnings: 0
$ clj-kondo --version
clj-kondo v2021.12.02-SNAPSHOT
This was with a local build -- perhaps I didn't get that right or messed
up in some other way...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#970 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACFSBRTEZWV22YDQR7GOULURETTLANCNFSM4QLFXQLQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Ah right. Thanks! I never seem to learn that :) Ok, this is what I get now:
Interestingly, it works for the following:
So may be it's because of I guess that's a different thing then. |
Can reproduce with |
Fixed on master. |
version
clj-kondo v2020.07.30-SNAPSHOT 2fb6175
platform
Linux, native-image (locally built)
problem
Reader conditional appearing after ^ appears to lead to an error.
To be specific, code like:
yields an error via a clj-kondo with the above version like:
In the wild, some examples of code that trigger this can be seen at:
repro.cljc
:output of
clj-kondo --lint repro.cljc
:expected behavior
The expected behavior is to not report an error as the construct appears to be correct in Clojure.
related
Related issue in parcera: carocad/parcera#80
The text was updated successfully, but these errors were encountered: