dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
pepe 2018-01-31T10:20:52.000223Z

Hi, after updating to Chrome Canary 66.0.3335.0 I have strange behavior. When I start Dirac it starts with Dirac 1.2.26 <-> http:/localhost:300/ in the title, but after 3 second it changes to Dirac 1.2.26 <-> ? and in Console I see:

Dirac requires runtime support from your app.
Please install Dirac Runtime into your app and enable the :repl feature.
[:dirac.implant.eval/install-check-timeout]
Is it only me? Or does somebody see the same?

pepe 2018-01-31T10:23:50.000156Z

@darwin should I open an issue?

2018-01-31T10:24:06.000092Z

try to refresh your app’s browser window once again when dirac is up

2018-01-31T10:24:27.000202Z

I noticed this when preparing .26 release, not sure what is causing it

2018-01-31T10:24:39.000035Z

it happened occasionally to me

pepe 2018-01-31T10:24:50.000585Z

refresh does not help

2018-01-31T10:25:39.000570Z

do you see any js errors in the Dirac’s window own devtools?

pepe 2018-01-31T10:31:18.000480Z

Hmm, when I press ctrl + shit + I when I have Dirac window open, it only opens the Dirac window again, what I am doing wrong? Sorry

2018-01-31T10:31:49.000112Z

I’m going to try to repro this with dirac-sample project

pepe 2018-01-31T10:33:46.000081Z

Thank you very much, I will try to get Dirac Dev Tools open in the meantime 🙂

2018-01-31T10:34:02.000282Z

@darwin uploaded a file: https://clojurians.slack.com/files/U08E3BBST/F91BG9A03/-.clj

2018-01-31T10:34:39.000322Z

probably this commit broke official devtools: https://chromium.googlesource.com/chromium/src/+/b37cae9024754d1cad99be6f3fd1628e71d410b4

2018-01-31T10:35:21.000506Z

or maybe better to say, I need to update Dirac with updated sources

2018-01-31T10:36:16.000238Z

to work-around this, you should install 3333.2 version of Chromium for the time being, the link is here https://github.com/binaryage/dirac/releases/tag/v1.2.26

pepe 2018-01-31T10:37:36.000233Z

Thank you very much as always! I really appreciate all your work and attention!

🍻 1
2018-01-31T10:37:42.000488Z

I should probably roll updated dirac release ASAP

❤️ 1
2018-01-31T10:38:10.000067Z

‘btw. did you manage to open dirac devtools’ own devtools? 🙂

2018-01-31T10:38:24.000462Z

It should really work and you should see the same js error as pasted above 🙂

2018-01-31T10:39:56.000320Z

btw. automated tests against latest chromium failed with the same problem: https://travis-ci.org/binaryage/dirac/builds/335463548

pepe 2018-01-31T10:40:56.000549Z

Well I did after all from settings pane, clicking on devtools/front_end/inspector.html link 🙂

pepe 2018-01-31T10:41:09.000028Z

The first thing is same as you sent above.

2018-01-31T10:41:43.000008Z

don’t you have a global shortcut set to open dirac devtools overriding the standard one?

pepe 2018-01-31T10:42:40.000247Z

Well you know, with me everything is possible.

2018-01-31T10:43:18.000215Z

I don’t think it would allow it, but check this out: https://github.com/binaryage/dirac/blob/master/docs/faq.md#how-do-i-focus-dirac-repl-prompt-via-a-keyboard-shortcut

pepe 2018-01-31T10:53:05.000373Z

I was using Chrome Canary, with your recommended version of Chromium everything works, even Dirac DevTools. Thank you very much

2018-01-31T10:57:28.000096Z

this was just a bad luck, dirac’s devtools sources started to be incompatible with latest chrome due to some breaking changes in chrome’s devtools protocol, we cannot realistically avoid this

2018-01-31T10:58:04.000269Z

this would at least properly report incompatibility: https://bugs.chromium.org/p/chromium/issues/detail?id=538300#c20

2018-01-31T10:58:14.000604Z

but it would be extra work for chrome devs

pepe 2018-01-31T10:58:17.000013Z

Yea, I don't blame anyone or anything. This is how it is, when you are living on the edge.

pepe 2018-01-31T10:58:50.000373Z

Still it is more than worthy for me

pepe 2018-01-31T10:59:04.000001Z

Dirac is god send for cljs frontend dev

p-himik 2018-01-31T10:59:49.000128Z

@darwin Would it be possible to [optionally] make Leiningen or something similar to always download automatically whatever Chromium version is the best for Dirac?

2018-01-31T11:00:56.000061Z

@p-himik that would be possible, but nobody probably put an effort into making something like this automated 🙂

2018-01-31T11:02:05.000359Z

it is confusing, I agree, but this thing happens very rarely and usually I’m faster with updated Dirac release than people notice it on their machines

1
😄 1
p-himik 2018-01-31T11:02:42.000041Z

And is it simpler to just check for Chromium version and alert the user when it's not the ideal one, while maybe also giving a link to the ideal one?

2018-01-31T11:03:43.000188Z

@p-himik I would be a range check, and I don’t have the information which versions are compatible

2018-01-31T11:04:19.000269Z

“DevTools frontend can adapt dynamically and does not fatally break when used with a slightly different Chrome version”

2018-01-31T11:06:00.000008Z

if this is an concern, I would recommend this: https://github.com/binaryage/dirac/blob/master/docs/faq.md#how-do-i-stick-to-a-particular-dirac-version

2018-01-31T11:06:13.000244Z

simply stick with particular dirac and chromium versions which are tested to work well

2018-01-31T11:06:20.000160Z

and update only manually

2018-01-31T11:06:26.000533Z

both of them in lock-step

p-himik 2018-01-31T11:07:46.000202Z

Oh, no, I don't mean the "set of versions that are guaranteed to work", I mean just something like that line in the release you pointed out: "Should work best with Chrome ~66.0.3333.2." The thing is, there's no such thing as Chrome Canary on Linux. And nowhere in the Dirac documentation it says that Chromium is supported as well, so a clearly visible link (just like the one you show when Dirac versions mismatch) would probably ease things for Linux users.

p-himik 2018-01-31T11:08:26.000216Z

(but now I know that Chromium is supported as well, which is good 🙂 )

2018-01-31T11:12:26.000034Z

well, I should probably report internal dirac error on all console errors in Dirac’s window, not sure why it wasn’t triggered this time

2018-01-31T11:12:45.000134Z

and in that message I could mention compatible Chromium version

1
2018-01-31T11:13:47.000449Z

or where would you put that “clearly visible link”

2018-01-31T11:13:49.000158Z

?

p-himik 2018-01-31T11:15:58.000252Z

Somewhere under that green plaque - like the message about Dirac versions mismatch.

2018-01-31T11:17:25.000374Z

but that should not be a warning, that would be displayed all the time I guess, because you will always have slightly different Chrome version than Dirac’s devtools snapshot

2018-01-31T11:17:58.000149Z

but I see, I could add the information there

p-himik 2018-01-31T11:19:26.000311Z

Yeah, not a warning - just something that one should check first whenever something doesn't work as it's supposed to. Thanks! 🙂