This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-20
Channels
- # announcements (1)
- # babashka (32)
- # beginners (100)
- # cider (43)
- # clj-kondo (4)
- # cljdoc (3)
- # cljs-dev (5)
- # cljsjs (2)
- # cljsrn (22)
- # clojure (170)
- # clojure-australia (27)
- # clojure-europe (25)
- # clojure-nl (3)
- # clojure-uk (76)
- # clojurescript (127)
- # conjure (14)
- # core-matrix (1)
- # cursive (9)
- # datomic (6)
- # defnpodcast (1)
- # emacs (32)
- # events (1)
- # expound (77)
- # fulcro (30)
- # graalvm (21)
- # graalvm-mobile (30)
- # helix (4)
- # honeysql (1)
- # hyperfiddle (1)
- # jackdaw (8)
- # jobs (6)
- # kaocha (1)
- # leiningen (4)
- # lsp (16)
- # malli (46)
- # meander (4)
- # off-topic (19)
- # pathom (10)
- # podcasts-discuss (1)
- # portal (2)
- # re-frame (7)
- # reagent (2)
- # releases (1)
- # remote-jobs (11)
- # rewrite-clj (8)
- # shadow-cljs (9)
- # tools-deps (243)
- # vim (1)
Hello there,
I installed a fresh version of linux on my laptop and I can't seem to make cider-jack-in
work.
It claims The lein executable isn't on your 'exec-path'
even though it exists in /usr/bin/
which is listed in the exec-path
variable.
I've tried googling for the last 2-3 hours but found nothing to remedy this.
Double-check and make sure the script is executable, you may have to do that by hand. sudo chmod +x /usr/bin/lein
Thank you for replying!
ls -l /usr/bin | grep lein
-rwxr-xr-x 1 root root 4500 Dec 26 2019 lein
Yes, and I can connect to that repl with the cider-connect
command and giving it the port number
there's a var called exec-path
which has a path for emacs to search for executables
https://github.com/purcell/exec-path-from-shell and this lovely library can help with lots of that
it seems that I already use that library. I got it from the clojure for the brave and true
book's customization files
you are welcome. not sure why you can't see it in eshell but whatever is preventing that is also preventing cider from running it. that problem is basically emacs cannot find or cannot run your executable
there's was something I did yesterday evening, but then I went to sleep and in the morning I couldn't replicate it, and I'm struggling the whole day.
Fixed it finally! Since I installed emacs 27.2 through flatpak it didn't exist as a runnable command in my terminal. So when I started it through the app menu, it ran in a different environment (don't know which). So the fix was to delete that emacs, and install the newest possible (26.3) through my software manager and everything worked smoothly
Additional things that could bring more info to the table: clojure version 1.10.3.855 lein version 2.9.1 on Java 11.0.11 OpenJDK 64-Bit Server VM cider version 1.1.1 emacs version 27.2 I've also copied the whole .emacs.d folder from my previous installation to the new one (I have a feeling this might be the culprit)
Is there a way in cider to treat a macro as defn
like cursive does?
@dpsutton also for avoiding highlighting things like symbols as flycheck errors
Ah. So the error checking is most likely clj-kondo and or lsp. But for indentation clojure mode allows you to set indentations. Also you can use meta data to achieve the same purpose
@quentin.leguennec1 for ignoring clj-kondo warnings you can use #_:clj-kondo/ignore
before the form.
Yeah exactly that's clj-kondo
https://docs.cider.mx/cider/config/indentation.html has indentation setting information
Is there any way to ignore errors on particular forms? Like all (custom-defn ..)
forms?
I see, thanks
https://github.com/clj-kondo/clj-kondo/blob/master/doc/config.md https://github.com/clj-kondo/clj-kondo/blob/master/doc/linters.md
here's a lovely project with some advanced configuration for a few popular libraries: https://github.com/clj-kondo/config/tree/master/resources/clj-kondo.exports/clj-kondo
(I didn't know that you could write functions to parse the forms at runtime and seem to return an annotated ast)