This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-04
Channels
- # boot (41)
- # cljs-dev (1)
- # cljsrn (64)
- # clojure (63)
- # clojure-argentina (2)
- # clojure-austin (1)
- # clojure-russia (1)
- # clojure-spec (1)
- # clojure-uk (59)
- # clojurebridge (1)
- # clojurescript (45)
- # cursive (3)
- # datascript (7)
- # dirac (34)
- # emacs (15)
- # hoplon (1)
- # jobs-discuss (1)
- # jobs-rus (5)
- # klipse (180)
- # lumo (3)
- # om-next (1)
- # re-frame (7)
- # reagent (6)
- # ring (20)
- # specter (10)
- # testing (2)
- # uncomplicate (15)
- # untangled (39)
@qqq => https://github.com/binaryage/dirac/blob/master/docs/faq.md#how-do-i-reveal-source-files-via-nrepl
Is there version number inflation going on here? I'm still on 1.1.6 and this is 1.2.0 🙂
so in short: use
:external-config {:dirac.runtime/config {:nrepl-config {:reveal-url-script-path "scripts/reveal.sh" }}}
provide a reveal.sh shell scriptalright, let me figure out how to test this out, as reveal.sh is running on REMOTE machine, and i need to force it back to LOCAL-MBP
you could use curl to do a HTTP post request and run with https://github.com/szarsti/chrome-emacsclient
well first things first, while you're here, I should get it so that reaveal.sh echoes the path
non-zero exit status will be reported as a failure, output printed to stderr will appear in devtools console
updated to 1.2.0;need to update build.boot can you briefly explain how https://github.com/binaryage/dirac-sample/blob/master/project.clj#L62 works ? the part that confuses me -- is how is it that "the script you should run on nrepl msg" a COMPILER option? it seems like something the dirac agetnt would control or something, yet it's emitted during COMPILE TIME? (weird since the compiler runs once, then it exists until next compile)
I don't know. The part that intuitively seems weird is (1) cljs compiler runs (2) cljs compiler exits (3) when this nrepl msg arrives, cljs compiler is most likely not running (4) yet, somehow this script was being called I guess if this was being controlled by figwhell or boot-repl, I'd be less surprised; but this is just my incorrect intuition.
the script’s responsibility is to open a file given an url, line and column as parameters
that is why it is baked into runtime config, which configures nrepl-middleware for given REPL session
in theory you could change it even dynamically, but after each change you have to open a new REPL session
yeah, the nrepl is Handling it, not the compiler; the only reason it's in the compiler-options part is that
or you can have have single project, but multiple cljs-builds and each using a diffent reveal script
cljs compiler bakes that :reveal-url-script-path
into dirac.runtime.config, and dirac.runtime.config uses :nrepl-config to configure nREPL session on open