This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-07
Channels
- # announcements (1)
- # babashka (79)
- # beginners (177)
- # cider (27)
- # cljdoc (24)
- # cljs-dev (4)
- # clojure (43)
- # clojure-norway (7)
- # clojure-uk (3)
- # clojurescript (52)
- # conjure (12)
- # cryogen (1)
- # cursive (5)
- # data-science (7)
- # datahike (1)
- # datomic (1)
- # dirac (2)
- # helix (14)
- # jobs-discuss (130)
- # juxt (4)
- # liberator (4)
- # malli (2)
- # mxnet (2)
- # news-and-articles (1)
- # nrepl (19)
- # off-topic (27)
- # pathom (3)
- # practicalli (1)
- # re-frame (4)
- # reagent (2)
- # ring (7)
- # shadow-cljs (21)
- # spacemacs (11)
- # vim (38)
- # xml (2)
- # xtdb (17)
I'm newbie using Luminus lein new luminus myshadow +cljs +shadow-cljs
But I got problem to get a browser-repl code compltion like (js/alert ..)
in Emacs CIDER. Does any one have a complete steps how to do this? This problem really troubled me a long time.
@dpsutton Usually how do you setup the CIDER connection to shadow-cljs? I'm now confused what's the simple and correct way, I check many differnet steps.
and then choose the options. its probably better to start up shadow's server on the command line though
shadow-cljs -d cider/cider-nrepl:0.25.1 server
and then cider-connect-cljs
choose shadow-select. then (shadow/nrepl-watch :app)
and then (shadow/nrepl-select :app)
New method learned, Hope get luck.
After shadow-cljs -d ... server
I use cider-connect-cljs
command, In CIDER prompt, it seems did not detect the correct port. which port should I use?
You can pin the Shadow-CLJS port via the {:nrepl {:port <PORT>}} config option. I'm not sure they set the .nrepl-port file like Lein does.
I choose the 7002
port from command-line, then (shadow/watch :app)
then (shadow/nrepl-select :app)
. All works fine. But browser code completion still not available. Should I choose :browser-repl
target instead?
Both, I want to get both code completions.
Or just only one of them can be archived?
I tried the :browser-repl
after cider-connect-cljs
and shadow-cljs
, At first time, it does not get code completion, Now it works fine now.
dpsutton, thanks for your help. Really solved my big problem.
@robert.mather.rmm If you are totally new to Emacs, I would recommend prelude Emacs also from Bugs (the creator of Cider). It is smoother and lighter than spacemacs. As for spacemacs, did you download the master or develop branch? Master is outdated last time I checked.
Thanks. I did Spacemacs master. The #spacemacs folks suggested trying develop as well. I'm a Vim user, so Evil mode is helpful for me. I'm guessing prelude is normal Emacs keybinding?