This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-14
Channels
- # adventofcode (62)
- # beginners (78)
- # boot (26)
- # boot-dev (9)
- # cider (73)
- # cljs-dev (33)
- # cljsrn (36)
- # clojure (159)
- # clojure-android (1)
- # clojure-austin (1)
- # clojure-greece (79)
- # clojure-italy (10)
- # clojure-nl (3)
- # clojure-russia (11)
- # clojure-spec (33)
- # clojure-uk (26)
- # clojurescript (107)
- # core-async (22)
- # core-logic (12)
- # cursive (16)
- # datomic (13)
- # devcards (5)
- # duct (36)
- # emacs (4)
- # figwheel (3)
- # fulcro (107)
- # graphql (171)
- # hoplon (27)
- # instaparse (24)
- # jobs-discuss (34)
- # juxt (3)
- # lein-figwheel (1)
- # leiningen (8)
- # lumo (11)
- # off-topic (9)
- # onyx (79)
- # parinfer (1)
- # pedestal (75)
- # re-frame (27)
- # rum (1)
- # shadow-cljs (11)
- # spacemacs (20)
- # specter (17)
- # unrepl (96)
Hi all. I'm new to clojure and spacemacs. I was trying to connect to an nREPL server that I created using boot-cljs-repl. I'm getting a NPE that seems to be coming weasel and boot_cljs_repl in the main cider-repl buffer. I am also getting a LispReader ReaderException in the cider-error buffer. I'm thinking that the NPE is actually coming from the server and the reader error is coming from cider, but it is awfully hard to tell what's going on here. Any ideas of how to debug?
Hello @lee.justin.m welcome to Clojure & Spacemacs. Sorry, I mostly use Leiningen build tool for my Clojure projects, although boot is on the todo list. If you have Leiningen, you could create a simple project with lein new myproject and use cider-jack-in command in Spacemacs to test you Clojure layer in Spacemacs is working.
@lee.justin.m the basic steps for starting a boot project, or connecting to a boot project started on the command line are covered in https://cider.readthedocs.io/en/latest/up_and_running/
Thanks @jr0cket. I tried going down that path but now I think I'm hopelessly confused. Although I can run lein repl
and then get cider to connect to that, what I was trying to do was to work through the modern-cljs tutorial to get a repl to connect to the browser. In both the boot
and lein
versions of the tutorial, I can get to a point where I can type (js/alert "hi")
and get a popup in the browser using the terminal-based nrepl clients. But I can never figure out what to do to get cider to do that. I think there is some kind of proxying going on but I just can't figure out what. I think I should just use the terminal-based repl for now. Cut-n-paste isn't that hard. 🙂
I was able to get it to work in both lein and boot, but it took a lot of finagling, and I don't even think what I have would work for a different environment
coming back to lisp after so many years away makes me remember how glorious and infuriating it is 🙂