-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Incorrect squiggle with macro quotes #2564
Comments
Hi! Thanks for reporting. This is better brought up with clj-kondo: $ clj-kondo --lint - << 'EOF'
(defmacro foo [xs]
(list println `'~xs))
(foo (a b))
EOF
<stdin>:3:9: error: Unresolved symbol: a
<stdin>:3:11: error: Unresolved symbol: b
linting took 33ms, errors: 2, warnings: 0 Maybe @borkdude can tell us wether he wants an issue there or if there is some reason why the default lint rules do this. |
Do you mean you consider it a bug that You need to configure clj-kondo for your custom macros. You can read more about that here: https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md#unrecognized-macros |
The following is valid Clojure:
However, the error squiggle is incorrect:
![Screenshot from 2024-06-06 12-01-01](https://private-user-images.githubusercontent.com/1312525/337341818-2cf039e5-5a45-4b70-802d-508fae6fd347.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5NzU4MDAsIm5iZiI6MTcyMjk3NTUwMCwicGF0aCI6Ii8xMzEyNTI1LzMzNzM0MTgxOC0yY2YwMzllNS01YTQ1LTRiNzAtODAyZC01MDhmYWU2ZmQzNDcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MDZUMjAxODIwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDRkYmQ0NDc4ODU0OWNkYmFkMDA4N2RhNzBjOTFiYTRjZWM2NWE1OTY3MmUyNWVlZDk5M2RlNjM3MTIwYTdhMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ._FPQVaLiysLnXvYsWb0esYxosV2mwc47V8Pu1CTlYfc)
The text was updated successfully, but these errors were encountered: