Fork me on GitHub
#clj-kondo
<
2021-05-30
>
Adam Helins09:05:44

I get this error:

gen.cljc:1:57: error: Invalid digit ` in unicode character.
Which is weird since I use ` a lot and it has never complained + there is actually nothing on 1:57

Adam Helins09:05:44

And it complains even if I delete all ` from the namespace

borkdude10:05:24

never seen that error before

borkdude10:05:44

perhaps you're loading hooks?

borkdude10:05:03

set aside your clj-kondo config to be sure it's nothing related to that

Adam Helins10:05:47

Not it... I don't know when it appeared. I must have changed something and it somehow confused the linter. But the namespace compiles and works well

borkdude10:05:06

maybe try setting aside your entire .clj-kondo dir including the cache

Adam Helins10:05:28

Alright, I got it I think. On a completely different line I have this docstring:

"Any valid character for hexadecimal notation, from `\0` to  `\f`."

Adam Helins10:05:19

I mean, this is problematic:

`\0
`

borkdude10:05:43

do you think clj-kondo should accept it, hence a false positive?

Adam Helins10:05:36

It is a false positive, I was trying to highlight \0 in markdown for documentation but it thinks I am trying to write a unicode char \0`

Adam Helins10:05:55

But it's very specific, I wouldn't worry too much about it, it's just puzzling when it happens

borkdude10:05:15

feel free to post an issue, it might be a rewrite-clj specific thing

👍 3
borkdude10:05:20

or tools.reader

Adam Helins10:05:39

Hmmm, I am sure I am right with that \0 unicode thing (since error goes away) yet I can't reproduce it in a minimal ns. Must be some kind of weird interaction. I can't share publicly this namespace. But it's probably an exceptional case, so no big deal at all.