This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-01
Channels
- # announcements (53)
- # babashka (27)
- # beginners (103)
- # biff (1)
- # calva (21)
- # cider (5)
- # circleci (12)
- # clj-kondo (7)
- # cljfx (3)
- # cljsrn (9)
- # clojure (25)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-uk (21)
- # clojured (1)
- # clojurescript (49)
- # cursive (20)
- # datomic (33)
- # events (3)
- # fulcro (39)
- # graalvm (20)
- # graphql (2)
- # introduce-yourself (1)
- # jobs (14)
- # keechma (3)
- # lsp (34)
- # malli (18)
- # meander (15)
- # off-topic (30)
- # polylith (10)
- # re-frame (21)
- # releases (2)
- # remote-jobs (5)
- # sci (10)
- # shadow-cljs (16)
- # tools-deps (2)
- # vim (6)
Hello clojurians!
Released https://clojure-lsp.github.io/clojure-lsp/ with fixes and exciting new features, clojure-lsp is not a editor only tool anymore, it has its own API and CLI 🎉
It's possible now to run clojure-lsp via terminal telling to clean all ns forms of your project, removing unused vars, sorting required/refers/imports 🚀
For more information, check #lsp.


hahah I expect carve to have a better configurability ATM, but it's easy to improve on clojure-lsp 🙂 carve seems a valid another approach not using the LSP protocol so having both options sounds good for community 😄
Also, not sure all features carve provide, if all of them are alreday included in the clean-ns refactoring
Yes @U04V15CAJ with that release, the clojure-lsp.api
should provide those features 🙂
https://clojure-lsp.github.io/clojure-lsp/api/
This is quite cool! For some reason I need to do this clojure-lsp -p ./ clean-ns
to manage the clean-ns work in my repos, is that intended?
the default of the -p
flag is the current dir, what error you were getting @UMMMKKADU?
no errors, is just not doing anything
I use zsh btw
instead it just prints 0ms
but this is such a good tool, thanks a lot https://github.com/parenthesin/microservice-boilerplate/pull/13/files

I do have only an ~/.lsp/config.edn
and just the ./clj-kondo/config.edn
at projects level
I don't think so, it probably some issue with the -p default value, in this case (io/file (System/getProperty "user.dir"))
I copied my personal .lsp/config.edn at project level and still having the same behaviour
Want me to open a issue?
@UKFSJSM38 Sorry to interrupt your release Eric, but I don't think your recent commits fixed anything :)
(System/getProperty "user.dir")
should work, but not when you put it in a top level def
This is because static initializers are initialized at build time in graalvm native image with the --initialize-at-build-time
option
Hum, it makes sense, but I tested with the @UMMMKKADU project, let me double check
Perhaps your commit fixed something because the path is relative now, but this is the real reason it was broken
I guess the commits do work, but I was surprised you were still using top level defs, which is probably not a good idea
you are right, it's missing running it in a function, or using default-fn instead of default
The CLI options are alright, but the defaults should just be handled dynamically, probably not using tools.cli itself
yes, but I think changing
:default (io/file "")
to
:default-fn #(io/file "")
is enoughHey all! I've been working in the last weeks on a https://github.com/sauercrowd/clojureflare to make it easy to use Clojurescript with Cloudflare workers It's super experimental right now, but four lines are enough to get your worker up and running! Check it out
(ns new-worker.core
(:require [clojureflare.core :as clfl]))
(clfl/worker
(clfl/route "GET" "/worker" "hello from my worker"))

A full walk-through is available in https://github.com/sauercrowd/clojureflare/tree/main/example-worker