This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-24
Channels
- # announcements (31)
- # babashka (21)
- # babashka-sci-dev (4)
- # beginners (8)
- # cherry (4)
- # cider (32)
- # clj-kondo (15)
- # cljdoc (4)
- # cljsrn (4)
- # clojure (69)
- # clojure-dev (1)
- # clojure-europe (12)
- # clojure-nl (1)
- # clojure-norway (8)
- # clojure-uk (4)
- # clojurescript (16)
- # clr (6)
- # conjure (4)
- # fulcro (4)
- # hispano (1)
- # honeysql (1)
- # humbleui (5)
- # hyperfiddle (8)
- # lambdaisland (4)
- # lsp (8)
- # malli (24)
- # off-topic (3)
- # polylith (5)
- # reagent (10)
- # remote-jobs (3)
- # rewrite-clj (7)
- # scittle (12)
- # spacemacs (4)
- # sql (2)
- # tools-deps (29)
- # xtdb (7)
Hey I was using clj-kondo analysis :filename to try to get the source file in github, but for clojurescript I'm having a "problem"
For this two examples the filename only shows:
• cljs/analyzer/api.cljs
• cljs/analyzer/passes.cljs
But the folder structure before the cljs
folder is different:
• https://github.com/clojure/clojurescript/blob/r1.11.60/src/main/clojure/cljs/analyzer/api.cljc
• https://github.com/clojure/clojurescript/blob/r1.11.60/src/main/cljs/cljs/analyzer/passes.cljc
Is there a way to get a bigger path in :filename
or infer this difference in any way?
I think this comes from a jar file. You can get a longer name by setting :canonical-file-names true
(or so, see docs)
You mean :canonical-paths
?
cool I will give it a try
nah, it appends the source of the information
like:
"/Users/rafael.delboni/.m2/repository/org/clojure/clojurescript/1.11.60/clojurescript-1.11.60.jar:cljs/analyzer/api.cljc"
but that's fine, I'm using this tool in a non intended way I think hahaha
I don't understand what else you are missing, what more is there to know about the location where it came from
I'm building a web app with the analysis data extracted from kondo, one feature I was adding was a link to the source in the github of the analysis
Take a look at quickdoc, it builds documentation with source links to github: https://github.com/borkdude/quickdoc/blob/main/API.md But you need to provide the github repo yourself as this is not part of the analyzed data
It's just a study of mine over spa https://rafael.delboni.cc/clojuredocs-helix/#/org.clojure It works for clojure, but not for clojurescript
if you want to have more accurate locations, it's better to git clone clojurescript and then analyze the source folders from clojurescript's repo
cool, I will probably pivot to this instead downloading the jars 🙂, similar to quickdoc thanks