dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
richiardiandrea 2017-06-20T17:04:05.485049Z

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

richiardiandrea 2017-06-20T17:06:58.547896Z

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 - <nrepl://127.0.0.1:8230>
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 - <nrepl://127.0.0.1:5088>
Adding :require adzerk.boot-cljs-repl to main.cljs.edn...
Compiling ClojureScript...

richiardiandrea 2017-06-20T17:13:57.697596Z

weird, I receive:

console.error("Unable to resolve backend-url for given tab-url (via debugger-url).
reason: empty body response from api-endpoint=<http://localhost:9222/json>
tab-url=<http://localhost:3000/>, debugger-url=<http://localhost:9222%22)|http://localhost:9222")>

richiardiandrea 2017-06-20T17:14:55.718897Z

I have a fairly uncommon setup but the pieces are there

richiardiandrea 2017-06-20T17:51:26.531219Z

ok I am trying the oraculum now πŸ˜„

2017-06-20T18:35:43.537162Z

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

richiardiandrea 2017-06-20T18:40:15.638215Z

so the oraculum downloads the right version...

richiardiandrea 2017-06-20T18:40:41.648259Z

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

2017-06-20T18:42:29.689228Z

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.

richiardiandrea 2017-06-20T18:48:17.817822Z

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

2017-06-20T18:50:38.869742Z

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

2017-06-20T18:52:50.918479Z

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

2017-06-20T18:53:18.929158Z

e.g. the commit message tells travis what to test https://github.com/binaryage/dirac/commit/8a5a2c855f0c00821316f146a7f1c16cb68714f5

2017-06-20T18:53:49.940464Z

and to generate it I use oraculum: https://github.com/binaryage/dirac/blob/master/scripts/health-check.sh

richiardiandrea 2017-06-20T18:54:19.950657Z

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"

richiardiandrea 2017-06-20T18:54:58.965659Z

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

richiardiandrea 2017-06-20T18:55:38.980648Z

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

2017-06-20T18:56:40.003062Z

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

richiardiandrea 2017-06-20T18:56:57.009387Z

yep I agree

richiardiandrea 2017-06-20T18:57:12.014816Z

but if data is persisted on the host

richiardiandrea 2017-06-20T18:57:49.028255Z

oraculum would be just a docker container containing Chromium canary

richiardiandrea 2017-06-20T18:58:08.035662Z

I just need to tunnel X, lol πŸ˜„

richiardiandrea 2017-06-20T18:58:20.040224Z

probably worth a fork

2017-06-20T18:58:49.050682Z

I don’t follow, what is X? πŸ™‚

richiardiandrea 2017-06-20T18:59:54.075194Z

http://dasunhegoda.com/gui-ubuntu-server-x11-forwarding/679/

2017-06-20T19:00:22.086814Z

sounds like an overkill to me

richiardiandrea 2017-06-20T19:00:33.091209Z

devs are lazy πŸ˜„

richiardiandrea 2017-06-20T19:00:47.096580Z

especially when you need to convince them to switch tech

2017-06-20T19:00:47.096635Z

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

richiardiandrea 2017-06-20T19:01:05.103575Z

yeah that too

richiardiandrea 2017-06-20T19:01:13.106255Z

I am still evaluating options πŸ˜„

2017-06-20T19:01:23.110221Z

why do you want to run that chromium inside docker?

richiardiandrea 2017-06-20T19:02:05.126488Z

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

2017-06-20T19:02:53.144860Z

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

2017-06-20T19:04:02.169958Z

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

richiardiandrea 2017-06-20T19:05:40.205240Z

oh cool sounds you have already all the pieces

2017-06-20T19:07:08.235993Z

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

richiardiandrea 2017-06-20T19:09:07.277511Z

ok very cool

richiardiandrea 2017-06-20T19:13:42.370078Z

Thanks a lot!

2017-06-20T19:14:04.378489Z

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

richiardiandrea 2017-06-20T19:14:11.380872Z

kk