This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-05
Channels
- # announcements (3)
- # babashka (64)
- # bangalore-clj (1)
- # beginners (12)
- # calva (21)
- # cider (7)
- # clj-kondo (16)
- # cljdoc (1)
- # clojure (49)
- # clojure-dev (2)
- # clojure-europe (10)
- # clojure-germany (3)
- # clojure-italy (1)
- # clojure-uk (13)
- # clojuredesign-podcast (6)
- # clojurescript (2)
- # code-reviews (21)
- # data-science (2)
- # datomic (3)
- # emacs (20)
- # events (1)
- # fulcro (2)
- # graphql (4)
- # java (3)
- # malli (14)
- # off-topic (45)
- # re-frame (2)
- # shadow-cljs (7)
- # tools-deps (167)
- # vrac (14)
- # xtdb (4)
I think that issue now mostly looks good. One thing I'm grappling with is how can we have :config-paths
in a way that it will work for all users on a project, be it on Windows, mac, Linux, CI.
I was thinking we could have some env var interpolation and conditional logic:
["%HOME%/.clj-kondo" [:when %CI% "/home/deploy/kondo-configs"]]
:-s, but probaaably notSilently ignoring non-existing paths probably also works. Not sure about Windows paths combined with Linux paths
Neh, I guess they are fine with just writing "C:\\Users"
since this works both on linux and Windows: (.exists (io/file "C:\\Users")) ;;=> false
Probably in a team, relative paths are quite common: just put all the shared configs in a dir one or two up
Tidbit that may be helpful or not: I think I am remembering correctly, that within the JVM, forward slashes also work on Windows.
Let me verify that. What I did test is that classpath entries / resources are valid with forward slashes only
It's so convenient that I can just ssh into my new Windows computer and do:
borkdude@DESKTOP-JN2UNTV ~ $ /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe lein repl
to spin up a Windows Clojure REPL ;)I guess this is a little bit iffy when on macOS/linux:
user=> (.isAbsolute (io/file "C:/Users"))
false
user=> (.isAbsolute (io/file "C:\\Users"))
false
@robert-stuttaford @martinklepsch Would also appreciate your feedback since you use the Rum hook code (potentially in multiple projects) - the issue: https://github.com/borkdude/clj-kondo/issues/992
@borkdude yes, this is great - we have a repo we put all our developer machine stuff in, adding this along side /.clojure/deps.edn and /.m2/settings.xml would be great!