This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # admin-announcements (2)
- # arachne (1)
- # architecture (6)
- # boot (316)
- # cider (7)
- # cljsrn (7)
- # clojure (169)
- # clojure-argentina (3)
- # clojure-belgium (1)
- # clojure-canada (4)
- # clojure-india (1)
- # clojure-russia (39)
- # clojure-spec (27)
- # clojure-uk (55)
- # clojurescript (213)
- # css (1)
- # cursive (20)
- # datavis (2)
- # datomic (52)
- # devcards (3)
- # dirac (78)
- # emacs (20)
- # events (1)
- # funcool (3)
- # hoplon (15)
- # jobs-rus (2)
- # om (57)
- # onyx (82)
- # overtone (1)
- # re-frame (10)
- # reagent (1)
- # ring-swagger (46)
- # spacemacs (7)
- # specter (31)
- # spirituality-ethics (1)
- # sql (43)
- # test-check (1)
- # testing (4)
- # untangled (30)
@denisj: I just did this for boot which works (i.e. made my own stub ns for Dirac preloads): https://github.com/boot-clj/boot-cljs-devtools/pull/1/files
"Cannot read property 'appendChild' of null" in bootstrap, looks like js/document.body is null
It's a little odd because :preloads on same ns (my stub which install devtools + dirac) from my test build, works fine. Some I'm trying to tease out what's different between my "dev" + "test" build
my ns is like this and works as long as the dirac/install! is commented
(ns day8.dev-preload (:require [dirac.runtime :as dirac] [devtools.core :as devtools])) (devtools/install! [:formatters :hints]) #_(dirac/install! [:repl])
ok I have hack to make it work:
... (devtools/install! [:formatters :hints]) (js/setTimeout #(dirac/install! [:repl]) 100)) ; timout workaround for browser.repl exception ...
@denisj: I will add preloads support to dirac in the next dirac release, 0.6.3 was just a hot-fix release
cool, I’m glad you like it, I spent good deal of time on making it as pixel-perfect as possible 🙂
btw. we will need some css changes upstream in devtools to make some things less hacky (the generated markup uses some nasty CSS tricks to play well with existing CSS in devtools console)
I could fix it in Dirac, but that would be only partial solution for Dirac users, not for everyone
btw. all styles should be tweak-able via prefs, if anyone had time to play with it, I would accept suggestions for improvements
@denisj: sorry was away from my computer. I’m not sure why you need to use
setTimeout as in boot-cljs-devtools it works for me with devtools and dirac in their own preload ns but no
sorry, my fault, this is not the Dirac, this is the normal js console.. I haven't seen "CMD+SHIFT+I".
@richiardiandrea: are you able to release soon please as I need that change for work today 😉 ?
@richiardiandrea: awesome thanks! Also might be worth testing as I only tested it once with my setup so far.
@superstructor: it throws an:
Dirac requires runtime support from your app. Please install Dirac Runtime into your app and enable the :repl feature. Uncaught ReferenceError: dirac is not defined
Hmm strange was working for me with a local snapshot jar. Will be able to test again and respond properly when I get into the office in 30-45mins.
What do you mean by one ns ? Like what @denisj had to do above in the chat history ?
@richiardiandrea: yep might not need
:require but having the dirac ns required might have had some other effect on it working ?
mmm there might actually be a problem with my configuration in lambone, I don't see
dirac on the classpath
@richiardiandrea: note in above snippet boot-cljs-devtools 0.2.0 is a version that does not exist, its just a local jar deployment I was using for testing.
@richiardiandrea: no trouble at all, happy to help as much as I know how to, I see all my application sources ?
@richiardiandrea: there is only my app sources/resources (cljs, svg, html etc) and
boot show -f
@richiardiandrea: I’ll build another snapshot off master with a different version number again of
boot-clj/boot-cljs-devtools and see if it works.
then you can try with that, be sure to clean
.m2/repository/powerlaces.... because snapshots are hard to handle...you need some brute force
no definitely does not work in lambone, we'll need to postpone my debugging, let me know if it works for you and I will release
whoever wants to have a spin at it and confirm, version
0.1.1-SNAPSHOT is the one to try
@richiardiandrea: your right, I get the same issue with Dirac. I will try
:require for Dirac and
:preloads for devtools ?
ok I’ll do another pull request now to fix with
:preloads for devtools only and
:require for Dirac as before.
hmm I think this was only working at all before because I tested a jar that still had the requires included
also, maybe we can stick with
powerlaces.boot-cljs-devtools.preload after all...otherwise it is a very long namespace name 😉
I think the option wasn’t in the right place, should be
update-in [:compiler-options :preloads] so testing again with dirac
@superstructor: I added some fix so please make sure you rebase if it is working
@richiardiandrea: aha it was my bad, i had tested a stale jar with both
:preloads was a no-op because its actually supposed to be in
:compiler-options. I now have devtools and dirac both working with
:compiler-options :preloads only (no
:require). Pull request coming in a few minutes.