When I have a function in a comment block, I cannot cmd-click it to navigate to the defintion. If i use the “go to defintion” command, it says “no definition found”. The same fn outside of the comment blocks works for this navigation (the function gets underlined on hover, and i can click it to jump. Also “rename symbol” fails to update instances in comment blocks. I can still get the document signature for the commented fn (but maybe thats kondo instead of the others). I think this used to work for me months back. Is this supported? Any config hints?
Sounds like you have :skip-comments true in your clj-kondo configuration?
I can reproduce this behavior if I toggle :skip-comments: true -> cannot go to definition inside comments, false -> go to definition in comments works as expected.
That value was being overriden by a library transitively bringing in kondo config.
> `org.scicloj/noj`→ tech.ml.dataset → dtype-next → ham-fisted, and ham-fisted’s jar carries the .clj-kondo/config.edn with :skip-comments true. When clj-kondo imported dependency configs into your project’s .clj-kondo/ tree, that setting came along and — being an imported lib config — silently outranked your home config.
I added project-level .clj-kondo/config.edn and it’s working again now 🙌
@seancorfield Thanks for the hint!
@pez used joyride + backseat driver to help diagnose. Awesome!
Sweet! I had no idea about the skip-comments config.
Ouch! I would file a bug against ham-fisted for that. It should not export any global configuration like that.