This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-11
Channels
- # architecture (3)
- # beginners (41)
- # boot (7)
- # cider (16)
- # cljs-dev (8)
- # cljsrn (2)
- # clojure (214)
- # clojure-austin (4)
- # clojure-russia (52)
- # clojure-spec (8)
- # clojure-taiwan (1)
- # clojure-uk (10)
- # clojurescript (87)
- # cursive (14)
- # datascript (34)
- # datomic (11)
- # dirac (55)
- # emacs (12)
- # hoplon (44)
- # luminus (6)
- # lumo (24)
- # off-topic (1)
- # om (8)
- # onyx (7)
- # overtone (2)
- # pedestal (1)
- # protorepl (4)
- # re-frame (7)
- # reagent (1)
- # ring (4)
- # rum (2)
- # slack-help (1)
- # spacemacs (2)
- # specter (32)
- # unrepl (131)
- # untangled (14)
- # yada (3)
hey @darwin , how are you ?
Front-end question for you if you have some time to answer ^^
do you use cljs and react, if yes, what cljs lib do you use
have you done some om.next
jobs yet ?
and dirac story ?
after building devtools ^^
started with this figwheel PR: https://github.com/bhauman/lein-figwheel/pull/309
by the way, have you checked this => https://github.com/cgrand/unrepl
really new, like few weeks ago
part of the problem with complexity of cljs tooling is that it stems from clojure tools, often as hacks on top of clojure-way IMO
I am not at home but I'll send you the link which explains the reasons
in my namespace I have required [goog.i18n.uChar :as u]
. In Dirac repl if I do (u/toCharCode "a")
I get ReferenceError: u is not defined
. am I missing something? I am sure I am in my namespace in the repl. Other than that everywhere in my source file where I have used u/toCharCode
is working as expected.
Thanks @darwin I'm in no hurry I can live with it for now and wait for it to be resolved later. I'm barely getting into Clojure(Script) and must admit I enjoy Dirac very much. Thanks!!!
goog.i18n.uChar/toCharCode
works as expected, this is just a problem that the alias is for some reason not respected
go through this section: https://github.com/binaryage/dirac-sample#hello-world
Oh, I got it.. makes sense. Come to think of it that it probably is the same with in other repls as well. I'll go through that sample. Thanks for explaining.
This is traditional REPL behaviour. Dirac does not try to be smart here and try to require the files for you. REPL environment is a separate environment from your runtime. It lives in nREPL server and starts empty.
Figwheel is a bit smarter here and you get access to compiler state which is the result of compiling your cljs project + all incremental builds
Ah! got it. I'm using boot - that's without Figwheel. I do reload stuff with boot-reload.
ok, so I won’t help you here, but IDEs which have support for nREPL have usually commands for loading files in repl, in-ns and other things as keyboard shortcuts
this can be done with Dirac as well: https://github.com/binaryage/dirac/blob/master/docs/integration.md
I have now run into another problem. My foreign-libs require in my namespace is not loading when i do (require 'my.nammespace)
.
I see, I'll study the integration doc. Seems like a little bit more tweaks are in order when not using leiningen and figwheel.
but if you spend time to setup a repro case in dirac-sample project, I would look into it