This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-21
Channels
- # announcements (10)
- # aws (38)
- # beginners (220)
- # calva (2)
- # cider (26)
- # clj-kondo (194)
- # cljs-dev (4)
- # clojure (190)
- # clojure-dev (7)
- # clojure-europe (3)
- # clojure-italy (6)
- # clojure-nl (4)
- # clojure-uk (8)
- # clojured (1)
- # clojurescript (29)
- # code-reviews (31)
- # community-development (9)
- # core-async (24)
- # cursive (38)
- # data-science (51)
- # datomic (52)
- # dirac (2)
- # emacs (3)
- # events (1)
- # figwheel-main (4)
- # fulcro (49)
- # graphql (13)
- # heroku (1)
- # hoplon (19)
- # immutant (3)
- # leiningen (1)
- # nrepl (59)
- # off-topic (12)
- # onyx (2)
- # pathom (51)
- # reitit (15)
- # shadow-cljs (88)
- # spacemacs (6)
- # sql (3)
- # tools-deps (107)
- # xtdb (11)
Hey folks! I am having troubles to make cider and shadow-cljs play nice together. When I perform a cider-jack-in-cljs
from the shadow-cljs.edn
file, I get a repl working. However, I cannot evaluate code inside .cljs
files, nor switch to the repl buffer. I get a message saying: No cljs REPLs in current session "clojure/app:localhost:62659"
. More info in the thread.
Project structure:
.
├── shadow-cljs.edn
└── src
└── my
└── app.cljs
shadow-cljs.edn
:
{:dependencies
[]
:source-paths
["src"]
:builds
{:app {:target :browser
:output-dir "public/js"
:asset-path "/js"
:modules {:main {:entries []}}}}
:dev-http
{8000 "public"}}
my/app.cljs
:
(ns )
repl buffer:
[:app] Configuring build.
[:app] Compiling ...
[:app] Build completed. (134 files, 1 compiled, 0 warnings, 1.92s)
To quit, type: :cljs/quit
[:selected :app]WARNING: No Clojure project was detected. The
refactor-nrepl middleware was not enabled. (You can mute this
warning by customizing `cljr-suppress-no-project-warning'.)
shadow.user>
Yep! Screen Shot 2019-10-21 at 10.04.39 (3).png
When I cider-switch-to-repl-buffer
from the shadow-cljs.edn
file, It transports me to the repl buffer
If I do it from a cljs file, it says No cljs REPLs in current session "clojure/acme-app:localhost:55074"
(This is anothe sample project btw)
I got in through a cider-jack-in-cljs
-> localhost
-> 55074
-> shadow
-> :frontend
Yes, the html only has a script
tag referencing the javascript build result
I am just trying to setup a development environment
a "Hello World" from my init-fn
and two shadow-cljs messages, one saying "websocket connected" and other saying "repl session start successful"
I can evaluate code at the repl buffer in Emacs. It sends the code to the browser and gets the result back. What I cant't do is evaluate code in the cljs buffer
I can't also perform a cider-switch-to-repl-buffer
. It says "No cljs REPLs in current session", even though there is one
One important detail is that the repl buffer says "clojure" instead of "clojurescript"
> Which version of shadow-cljs is this?
[email protected]
It worked!
so apparatently cider-nrepl will clone
the nREPL session after it has been upgraded to CLJS. can anyone tell me why? pretty sure that most things aren't cloneable in a CLJS session