This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-02
Channels
- # announcements (13)
- # architecture (18)
- # babashka (90)
- # beginners (80)
- # calva (35)
- # chlorine-clover (29)
- # cider (24)
- # clj-kondo (4)
- # cljfx (3)
- # clojure (60)
- # clojure-australia (2)
- # clojure-europe (60)
- # clojure-france (2)
- # clojure-germany (3)
- # clojure-italy (4)
- # clojure-nl (84)
- # clojure-norway (7)
- # clojure-uk (53)
- # clojurescript (54)
- # clojureverse-ops (1)
- # community-development (6)
- # conjure (1)
- # contributions-welcome (1)
- # cursive (12)
- # datomic (1)
- # fulcro (16)
- # garden (61)
- # girouette (1)
- # graalvm (14)
- # hugsql (1)
- # instaparse (5)
- # jobs-discuss (11)
- # keechma (1)
- # lambdaisland (3)
- # off-topic (20)
- # pathom (1)
- # re-frame (3)
- # reitit (2)
- # releases (1)
- # remote-jobs (2)
- # reveal (11)
- # shadow-cljs (58)
- # spacemacs (5)
- # sql (3)
- # startup-in-a-month (1)
- # vim (2)
good morning 🙂
Morning, did Clojure just before sleeping, and just after waking up. What more can I want? 😀 Now normal shit again..
https://twitter.com/borkdude/status/1356545209157488640 ^ clj-kondo analysis used from clojure-lsp to find things, in emacs
I’ve been using it for few months but it feels so straight forward that I don’t even know what can the talk be about 😄
I for one wouldn't know how to begin using. But I'm stuck on just leiningen from command line and IntelliJ.. I tried to use Emacs, but that was ages ago.
I don't know if I was unlucky but last time I tried (right after the recent clj-kondo release) it was quite disapointing, like not able to do autocomplete on core.async fns (:require [clojure.core.async :as async])
and async/c would suggest nothing) and so on
for navigation I still prefer git-grep/ripgrep via consult+embark on emacs, but that's just me maybe, old habits die hard
@mpenet the clojure-lsp project uses static analysis and maybe those vars could not be statically recognized
I was hoping to use lsp just for autocomplete when I am not runnig a repl for hit&runs modifications
I suspect it's also not able to pick up some of the stuff that's generated, like default spec generators aliased from test.check and other things like that.
This guide was helpful in setting it up: https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/ Also be sure to re-install lsp mode in emacs and delete your previous things from elpa, this got me
LSP :: Restarting LSP in buffer db.clj
LSP :: Connected to [clojure-lsp:59528/starting].
LSP :: clojure-lsp has exited (exited abnormally with code 1)
did you add the whole basic configuration?
thanks
Error: Invalid or corrupt jarfile /Users/erooijak/.emacs.d/.cache/lsp/clojure/clojure-lsp
Error: Invalid or corrupt jarfile /Users/erooijak/.emacs.d/.cache/lsp/clojure/clojure-lsp
duidelijk
you also recompiled emacs.d right?
Apparently there’s also lsp layer in spacemacs, okay thank you for the suggestions!
anyway, it takes time to set this up, it also took me a long time to try it again after having tried probably more than a year ago
• I think I might have hit: Fix clj-kondo batch analysis when merging batchs - Fix #284
I also added this to my config: lsp-enable-indentation nil
as this was slow for me on emacs 26
@mpenet if you just want auto-complete: https://github.com/didibus/anakondo. Also based on kondo's output.
it might be less automatic than clojure-lsp since clj-kondo doesn't scan anything on its own so the user is responsible to invoke their build tool to provide a classpath, while clojure-lsp figures this stuff out for you
> it’ll only auto-complete within the buffer, it won’t be able to show candidates from the required dependencies
"If it can’t find either, it’ll only auto-complete within the buffer, it won’t be able to show candidates from the required dependencies." I think the "If it can't find either" part is important.
> It supports the notion of projects, using projectile or clojure-mode and Clojure’s tools.deps. This means it’ll pick up the buffer’s current project root using projectile or clojure-mode, and it will use Clojure’s tools.deps to get the project’s classpath. If it can’t find either, it’ll only auto-complete within the buffer, it won’t be able to show candidates from the required dependencies.