This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-24
Channels
- # aleph (19)
- # announcements (59)
- # asami (34)
- # aws (1)
- # babashka (17)
- # beginners (174)
- # bitcoin (11)
- # calva (16)
- # chlorine-clover (5)
- # cider (5)
- # clj-kondo (14)
- # cljsrn (13)
- # clojars (25)
- # clojure (124)
- # clojure-australia (1)
- # clojure-europe (48)
- # clojure-nl (4)
- # clojure-spec (1)
- # clojure-uk (40)
- # conjure (6)
- # core-async (25)
- # cursive (30)
- # data-oriented-programming (3)
- # datomic (14)
- # depstar (14)
- # emacs (3)
- # graalvm (27)
- # helix (1)
- # honeysql (25)
- # hoplon (3)
- # jobs-discuss (6)
- # kaocha (3)
- # lsp (109)
- # lumo (1)
- # malli (5)
- # meander (21)
- # music (1)
- # pathom (1)
- # re-frame (4)
- # reitit (1)
- # remote-jobs (1)
- # reveal (11)
- # rewrite-clj (3)
- # shadow-cljs (42)
- # spacemacs (15)
- # sql (13)
- # startup-in-a-month (4)
- # tools-deps (45)
- # vim (16)
- # xtdb (23)
- # yada (1)
Does anyone have a working doom+lsp+rebl set up? I'm following the directions from the REBL docs, but the communication between Doom and REBL isn't working.
Ok, thanks. I wish I could just use a clojure.main repl like in Cursive. It works without a hitch there.
@ericdallo Hello Eric, I am investigating the classpath loading failure issue. How to get the project-root value when I connect to the running nrepl? Thanks.
I connected to the nrepl already. How can I start debug clojure-lsp, for example, get the project-root value through repl? thanks.
then you can eval things that will affect the clojure-lsp running in your sample project
maybe this can help: https://clojure-lsp.github.io/clojure-lsp/#community-development
Yes. I compiled with :debug, and running with clojure-lsp project. lsp-log-io is on, and I can get the logs now.
found it, lsp-treemacs. the outgoing hierarchy would also be possible to implement I think
Released clojure-lsp https://github.com/clojure-lsp/clojure-lsp/releases/tag/2021.02.24-14.23.08
ā¢ Add new Thread first/last all code actions š
ā¢ Improve completion performance using completion/resolveItem
for documentation request
No @U04V15CAJ I'm having a hard time making that work š
I need clojrue way to queue the changes and process them in some ms, instead of analyzing with clj-kondo at each change
if you need a queue, use a queue? :) https://github.com/clj-kondo/clj-kondo/blob/148d3373966b5f52a9b1ec11ca735e0a07d196e1/src/clj_kondo/impl/core.clj#L256-L280
like, if you input 100 1
really fast (holding the key), clojure-lsp will receibe 100 didChange notifications, we should only analyze if the last didCHange took 200ms (or some configured time)
is not paralel, it just wait some time to analyze with clj-kondo the merge of all code changes one time instead of calling clj-kondo for each change
in that PR I process with your magic replace-text function and add to async channel, I just need to process them with debouncing
It fix the issue indeed @U04V15CAJ thank you again š It seems to have a issue though, or I need a different function
the debounce only happens when a second or other values are inserted in the specified time
if I just call it once, (after calling one time), it will not get the value from in
tiny sample:
(def in (chan 1))
(put! in {:bar (rand-int 100)})
(go-loop [value (<! (debounce in 1000))]
(println value)
(recur (<! (debounce in 1000))))
if I run the go-loop multiple or the first time, it works as expected, but the second time it doesn't print
It works š Folks helped me https://clojurians.slack.com/archives/C05423W6H/p1614189205008800?thread_ts=1614186680.003700&cid=C05423W6H
@U04V15CAJ if wanna give a try later: https://github.com/clojure-lsp/clojure-lsp/pull/336
I see that the show-docs-arity-on-same-line?
option has disappeared from settings https://emacs-lsp.github.io/lsp-mode/page/settings/
this is the correct clojure-lsp docs: https://clojure-lsp.github.io/clojure-lsp/
besides, there is probably some other problem, because after 5 minutes of work, the log is over 3mb
Error while looking up classpath info in /home/ribelo/code/frisco-react Cannot run program "boot" (in directory "/home/ribelo/code/frisco-react"): error=2, No such file or directory
the error is probably on the side of our repo, because we gave up boot, but the build.boot file remained.
the Cannot find position data when analysing fn*
is something to fix on clojure-lsp butis not a error just a unecessary log
the exception is indeed a error, we need to understand why is not analyzing correctly
clojure-lsp use these default project specs: https://github.com/clojure-lsp/clojure-lsp/blob/master/src/clojure_lsp/crawler.clj#L53-L61
if it finds the file in project-path
, it then use the classpath-cmd
to get the classpath
but build.boot is the third one, so it should check if the projet is a lein or deps.edn one
Is the LSP and clj-kondo integration used by flycheck in Emacs-lsp? In Spacemacs, clj-kondo is typically added via a clojure-enable-linter variable on the Clojure layer (or a setq of the same name). Just wondering if running a am duplicating code analysis that clj-kondo is doing for LSP if I also include a linter for flycheck.
In Doom, at least, it seems to be disabling flycheck when LSP is enabled.
However, to diagnose issues with clj-kondo, it is recommended to provide a command line repro
@ericdallo Can clojure-lsp print the clj-kondo version? This would be really nice for error reports
it's printing (string/trim (slurp (io/resource "CLJ_KONDO_VERSION")))
=> "2021.02.14-SNAPSHOT"
not the exactly version on deps.edn: 2021.02.14-20210218.170309-6
But you can maybe do your own version parsing from your deps.edn at compile time (beware that deps.edn isn't usually in the deployed jar)
hahahaha I think I'll just use the resource file version, parsing the deps.edn looks harder/dangerous for a simple thing like that
clj-kondo doesn't know this version itself, it's generated by clojars, like I said before. but you know this version, because you are adding it to your deps.edn
I would like clj-kondo to keep giving me joy, but dont need clj-kondo to do twice the work to give me the same joy. So it seems I can switch off the clojure-enable-linter variable and still get the same joy. Thank you š
You will even get a newer clj-kondo sometimes, because Eric Dallo uses clj-kondo from master ;)
Even more joy š