This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-09
Channels
- # admin-announcements (1)
- # beginners (78)
- # boot (36)
- # cider (13)
- # cljs-dev (15)
- # cljsjs (3)
- # cljsrn (10)
- # clojure (99)
- # clojure-austin (1)
- # clojure-australia (1)
- # clojure-italy (14)
- # clojure-korea (17)
- # clojure-norway (1)
- # clojure-russia (42)
- # clojure-sg (1)
- # clojure-spec (50)
- # clojure-uk (80)
- # clojurebridge (24)
- # clojurescript (83)
- # community-development (10)
- # conf-proposals (36)
- # core-async (12)
- # cursive (20)
- # datomic (38)
- # hoplon (63)
- # lambdaisland (2)
- # leiningen (6)
- # nyc (2)
- # om (54)
- # om-next (52)
- # onyx (129)
- # planck (15)
- # re-frame (38)
- # reagent (2)
- # rethinkdb (8)
- # specter (1)
- # untangled (2)
does anyone have any recommendations for debugging (e.g. general strategies, tools, etc)? error messages seem very obscure and inspecting the cljs source in chrome is difficult at times since I don't have access to the variables in scope.
REPL FTW! I’ve seen many people using here live reloading (obviously), but not that many actually using nrepl. In my case I rarely use Chrome, emacs + cider + nrepl covers almost all debug sessions
Hi guys very beginner question here, I have trouble connecting to nrepl through cider. I have project created with re-natal (re-natal init projectname). Then I go into emacs and jack-in… from there I’m not sure how to start figwheel to see changes on ios (simulator and device) when I do > re-natal use-figwheel and > lein figwheel ios, figwheel server starts and I have to open up separate terminal to > re-natal xcode. doing that gives me repl on my terminal but I’m not using emacs cider at this point at all…
@jeeq No sure about jack-in, but once fighweel start it will start nrepl as well - you should see something like nrepl is listening on port N
. Then I simply cider-connect
to that port. Clojure REPL starts, then in order to lift REPL to CLJS repl you can use (use 'figwheel-sidecar.repl-api)(cljs-repl)
oh and don’t forget to open ios simulator 🙂
one note - I’m not familiar with re-natal, maybe it has some other shortcut and workaround for repl
@jorda0mega: I agree with artemyarulin about the REPL, but I know that @pesterhazy disabled source maps for boot-react-native if that is what you are using, so if that gets enabled again the debugging should be easier if you are not used to debugging compiled js-code (I’ve sort of gotten used to it). For debugging re-frame 0.8.0
subscriptions I wrote a simple macro: https://gist.github.com/vikeri/e73be3f6be6a84bb7fef71bb63c21d83
@jorda0mega are you using boot-react-native or re-natal?
we started collecting common errors for BRN here: https://github.com/mjmeintjes/boot-react-native/wiki/Troubleshooting
@jeeq @vikeri @pesterhazy I have been using re-natal. I will give the repl a try. Thanks for the tip