Fork me on GitHub
#clj-kondo
<
2021-04-17
>
yuhan10:04:07

$ echo 'abc/' | clj-kondo --lint -
<stdin>:1:5: error: Invalid symbol: abc/.
linting took 21ms, errors: 1, warnings: 0
Why does the error get reported at column 5 (after the slash) instead of the start of the symbol? It causes a tiny hard-to-see squiggly line in Emacs, but I'm not sure if that's a frontend issue with flycheck-clj-kondo.

yuhan10:04:31

ok, I'll log an issue if this isn't a design decision. Still a big improvement from the time I last updated, where it would report at the start of the file 🙂

borkdude10:04:46

it's not a conscious decision I think

borkdude12:04:38

@qythium Thanks for the PR :)

borkdude12:04:02

$ ./clj-kondo --lint - <<< 'foo/'
<stdin>:1:1: error: Invalid symbol: foo/.
:thumbsup:

🎉 3
yuhan12:04:52

Thanks for all your work on clj-kondo! I still find it amazing how easy it is to go from "huh, why does that squiggly line look weird" to digging out the root cause and fixing it. Yay for open source 🙂

🎉 14