Fork me on GitHub
#dirac
<
2017-06-20
>
richiardiandrea17:06:05

sooo how do I change the nRepl port in dirac (I have 5088 instead of 8231 in a project)

richiardiandrea17:06:58

actually it seems I am launching two nrepls:

Adding :preloads dirac.runtime.preload to main.cljs.edn...
nREPL server started on port 8230 on host 127.0.0.1 - 
Writing figwheel.connect.main-acfc07d9 namespace to main_acfc07d9.cljs...
Adding :require(s) to main.cljs.edn...
nREPL server started on port 5088 on host 127.0.0.1 - 
Adding :require adzerk.boot-cljs-repl to main.cljs.edn...
Compiling ClojureScript...

richiardiandrea17:06:57

weird, I receive:

console.error("Unable to resolve backend-url for given tab-url (via debugger-url).
reason: empty body response from api-endpoint=
tab-url=, debugger-url=

richiardiandrea17:06:55

I have a fairly uncommon setup but the pieces are there

richiardiandrea17:06:26

ok I am trying the oraculum now 😄

darwin18:06:43

@richiardiandrea I’m back, I could try to help now

richiardiandrea18:06:15

so the oraculum downloads the right version...

richiardiandrea18:06:41

so then I need a way to use it...uhm...ok maybe the functionality it's not there yet

darwin18:06:29

oraculum has some ad-hoc functionality, I use it to do mapping between chromium revision numbers to downloadable builds, or retrieve latest chromium revision, etc.

richiardiandrea18:06:17

oh ok, so launching Chromium canary would be out of scope?

darwin18:06:38

well, maybe you should write what are you trying to achieve, Chrome Canary is some Chromium version selected by google devs, Chromium builds are continuous, you can pick any Chrome revision

darwin18:06:50

I use oraculum to generate health-check branch, to test specific Chromium builds against recently release Dirac extension: https://github.com/binaryage/dirac/commits/health-check

richiardiandrea18:06:19

Ok gotcha, I just would like to have a way to tell my colleages "here is a Chrome/Chromium you can use to debug Cljs"

richiardiandrea18:06:58

the above Chromium will have Dirac installed/point to a local profile that has Dirac

richiardiandrea18:06:38

probably I can fork the oraculum...if it seems you'd not want this feature..

darwin18:06:40

oraculum project should ideally have no knowledge about dirac, at least right now it is an independent tool

richiardiandrea18:06:12

but if data is persisted on the host

richiardiandrea18:06:49

oraculum would be just a docker container containing Chromium canary

richiardiandrea18:06:08

I just need to tunnel X, lol 😄

richiardiandrea18:06:20

probably worth a fork

darwin18:06:49

I don’t follow, what is X? 🙂

darwin19:06:22

sounds like an overkill to me

richiardiandrea19:06:33

devs are lazy 😄

richiardiandrea19:06:47

especially when you need to convince them to switch tech

darwin19:06:47

I imagined you want a simple (bash) script, which given dirac version would download matching Chromium build and setup some launch scripts with proper dirac-specific chromium args

richiardiandrea19:06:13

I am still evaluating options 😄

darwin19:06:23

why do you want to run that chromium inside docker?

richiardiandrea19:06:05

a script would do, I am evaluating what to do as well speak...initially I though the oraculum was already doing that 😉

darwin19:06:53

you could write a script which would scrape Dirac’s release page and get the links from there, see https://github.com/binaryage/dirac/releases/tag/v1.2.10

darwin19:06:02

or use something like this script to compute those links on its own: https://github.com/binaryage/dirac/blob/master/scripts/prepare-chromium-links.sh

richiardiandrea19:06:40

oh cool sounds you have already all the pieces

darwin19:06:08

this file gets regenerated quite often when I pull new changes from official chrome repo via this script: https://github.com/binaryage/dirac/blob/master/scripts/regenerate.sh

darwin19:06:04

np, good luck and let me know if you get stuck on smthng