This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (12)
- # babashka (7)
- # babashka-sci-dev (46)
- # beginners (35)
- # biff (1)
- # calva (4)
- # cider (22)
- # clj-kondo (48)
- # clj-on-windows (4)
- # clojure (132)
- # clojure-europe (161)
- # clojure-germany (1)
- # clojure-nl (2)
- # clojure-uk (5)
- # clojurescript (39)
- # conjure (10)
- # core-typed (1)
- # cursive (48)
- # datalevin (6)
- # datascript (12)
- # datomic (9)
- # emacs (5)
- # events (1)
- # figwheel-main (2)
- # honeysql (7)
- # hyperfiddle (35)
- # improve-getting-started (8)
- # introduce-yourself (4)
- # london-clojurians (1)
- # off-topic (20)
- # podcasts (1)
- # re-frame (45)
- # reitit (5)
- # releases (2)
- # rum (7)
- # shadow-cljs (20)
- # spacemacs (4)
- # tools-build (58)
- # tools-deps (19)
- # xtdb (56)
hi guys, I'm trying to start a little project with shadow-clj / re-frame / emacs / cider with the re-frame template, https://github.com/day8/re-frame-template with lein. Opening the repl from within Emacs (C-c M-j) works ok, but when invoking any function, in different namespaces, I keep getting the same error reported:
and no Clojure / REPL related Emacs shortcut works, i.e. C-c C-k to compile and load current buffer, or C-c C-z to jump straight into REPL.
Syntax error compiling at (*cider-repl flexiana/scrambler-fe:localhost:8777(clj)*:50:20). Unable to resolve symbol: init in this context
I tried the same with the front-end / SPA module of the following little Clojure fullstack project I've taking as reference: https://github.com/lagenorhynque/clj-rest-api-and-cljs-spa-example, SPA: https://github.com/lagenorhynque/clj-rest-api-and-cljs-spa-example/tree/master/todo-app, but in that other context, I keep getting exactly the same issues described above.
Futhermore, as I start up the SPA from CLI as explained in its README:
the SPA works well, but when started up by starting up the REPL from Emacs (C-c M-j), the SPA runs, but reporting the following warning:
$ npm install $ npx shadow-cljs watch app
shadow-cljs - Stale Output! Your loaded JS was not produced by the running shadow-clj instance. Is the watch for this build running?
does anybody guess what might be the reason of these issues, or what I'm doing wrong? thanks !
If my local lein is at
/usr/bin/lein and remote server has it at
/opt/asdf/shims/lein and I try to jack-in into remote project (opened via tramp) I get an error
I guess I can omit this if I set up asdf version of lein on my local machine, but perhaps the channel has better ideas?
You can run the command 'cider-jack-in-clj' with SPC m ' error in process sentinel: Could not start nREPL server: /bin/sh: 1: lein: not found
the error says
lein not found I'd check
which lein. I would maybe
ln -s /opt/asdf/shims/lein /usr/bin
this worked a step further but now java is not found o_O
Will try similar approach with java
error in process sentinel: Could not start nREPL server: /opt/asdf/installs/leiningen/2.9.8/bin/lein: line 257: type: java: not found Leiningen couldn't find 'java' executable, which is required. Please either set JAVA_CMD or put java (>=1.6) in your $PATH (/opt/asdf/installs/leiningen/2.9.8/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin).
Setting $JAVA_CMD to asdf path worked -- so if someone (or future me) has problems with cider session remote jack-in using asdf-based setup, try to experiment a bit with lein and java binaries availability.
I want to connect to two different CIDER nREPLs within the same project. Is that supported?
I know in spacemacs clojure layer it is supported ..but not sure if it's a cider thing or something else. Oddly enough I have a similar use case like you (running babashka repl..along side my project repl)
@hans.conrad Yes, this is similar, but now it's a JVM REPL + a custom CLJS REPL
neat... btw sorry looks like it is using this https://github.com/vspinu/sesman for multiple connections
with sesman I can link a connection to a specific buffer
if you have a session called "babashka"
(sesman-link-with-buffer (current-buffer) (assoc "babashka" (sesman-sessions 'CIDER)))
FYI - CIDER 1.4 ("Kyiv") is out! See https://github.com/clojure-emacs/cider/releases/tag/v1.4.0 for details.
I've just updated and trying
It gives me this error:
Here's the code: https://github.com/jumarko/clojure-experiments/blob/master/src/clojure_experiments/security/encryption.clj#L48 If I remove the ns and eval the buffer as usual (with the prefix) then it works again. I'm using spacemacs if that matters.
#namespace[clojure-experiments.security.encryption]Syntax error compiling at (src/clojure_experiments/security/encryption.clj:48:4). No such namespace: System
Probably you've encountered some edge-case we didn't notice. Please, file an issue about this.
@U191H9E5C @U051BLM8F that issue is I think what is happening to me.