This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-03
Channels
- # beginners (20)
- # boot (407)
- # cider (17)
- # cljs-dev (29)
- # cljsrn (33)
- # clojure (169)
- # clojure-greece (17)
- # clojure-russia (47)
- # clojure-spec (40)
- # clojure-uk (81)
- # clojurescript (64)
- # clr (3)
- # copenhagen-clojurians (3)
- # core-async (1)
- # cursive (28)
- # datomic (26)
- # editors-rus (4)
- # emacs (10)
- # events (1)
- # figwheel (1)
- # funcool (1)
- # hoplon (82)
- # jobs (1)
- # klipse (10)
- # lein-figwheel (26)
- # leiningen (1)
- # off-topic (2)
- # om (153)
- # overtone (2)
- # pedestal (15)
- # proton (1)
- # re-frame (6)
- # ring-swagger (1)
- # rum (1)
- # slack-help (4)
- # untangled (56)
- # vim (24)
- # yada (2)
@tiensonqin: advanced
mode?
@seantempesta @tiensonqin I think it means :advanced compilation in the :prod :cljsbuild
Oh. I didn’t realize re-natal
worked with advanced compilation. I’ve been using simple
hi! i am trying out re-natal, and it works great, except that development is very difficult since I do not get any meaningful stacktraces. The stack trace usually starts with customEval in figwheel-bridge.js
however, if I patch the file and add console.error(e.stack)
instead of just console.error(e)
, at least I can see some clojurescript methods in the react-native log-android
output
is there a way to get the proper stack to Redbox/Yellowbox dialog or in the log? Should this be patched in re-natal?
Are you developing with android or ios? I'm doing mostly android first and 'adb logcat' is helpful there.
i think may depend on when the errors are thrown. In my case, there is a runtime exception when the js code is first evaluated, so it originates in figwheel-bridge.js where the eval
call is. I'm pretty sure the error object there should be forwarded somewhere
A few days ago there was a discussion in this channel about integrating Compassus with the React Native navigator @tobiash went ahead and figured it out in this example project: https://github.com/tobiash/rn-compassus-example/blob/master/src/rn_compassus/android/core.cljs
i am not sure it covers all aspects, and the downside is that you have to through the navigator to change the route
@tobiash I switched to boot-react-native to get better stack traces. They are better but still not ideal. To get the method that causes the trouble you'll sometimes have to go into the sources tab and set up "Pause at exceptions".
Interesting with the e.stack
option. Might very well be worth investigating more. My experience is that this area is not super well explored/sorted.
@tobiash awesome!! Im working on the same thing and I'm loving your minimal example is great! Mine is a lot more complex because I am trying to get drawer+tabs working all at once... I definitly should've started with minimal use case like you did! I'm almost getting discouraged because of how complex it is still to have many stack-nav use same compassus app/reconciler but swap the root's query.. almost there 🙂
I have same complaints about stack traces using re-natal a lot of times the traces is useless... I may investigate boot-react-native if that fixes that it would be a big plus!
happy to hear. i did the minimal example after getting rather frustrated working on my actual cljs project
interesting... I tested ex-nav's drawer and it seems to work great.. I'm about to test the tabs in my current compassus/ex-nav integration repo.
@vikeri I investigated further, the figwheel-bridge has multiple ways of loading scripts, and while in some cases it uses plain eval
and we could actually leverage more stack there, in other cases it uses importScripts
(at least while running in chrome debugger), and simply doesnt seem to produce good stack trace information. so e.stack
only helps when not using the debugger 😕
I did remember having more relevent traces and was wondering why it's all gone now.. at least if turning off debugger can help then heh..
I'd be interested in trying boot-react-native, but there arent any recent commits on the project and even less documentation/blog posts than re-natal
@sineer ...well at least the stack traces I'm talking about are not actually output by re-natal
yes, it's a bit crazy. but I think it's down to the multitude of environments in which it can run
I just haven't tried to read/understand it yet. so much things to learn/understand I feel I keep hitting new taller walls every time I dig into something heh