dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
frank 2016-02-02T17:02:45.000291Z

I seem to be getting weird errors in dirac

frank 2016-02-02T17:02:51.000292Z

It's telling me that devtools isn't installed

frank 2016-02-02T17:03:09.000293Z

even though there's output saying "Installing devtools with features etc. etc."

2016-02-02T17:03:45.000294Z

there could be something wrong with my implementation of the check

2016-02-02T17:07:29.000298Z

so, you are seeing this message? https://github.com/binaryage/dirac/blob/master/src/implant/dirac/implant/eval.cljs#L88

frank 2016-02-02T17:09:12.000300Z

yes

2016-02-02T17:10:02.000301Z

does this return true, when you execute it in js console? devtools.dirac.installed_QMARK_()

2016-02-02T17:10:28.000302Z

ideally run it as soon as possible after you refresh the page (after you see the error message)

frank 2016-02-02T17:21:32.000303Z

VM494:2 Uncaught TypeError: Cannot read property 'installed_QMARK_' of undefined(…)

2016-02-02T17:21:48.000304Z

so devtools.dirac is not present in your page

2016-02-02T17:22:01.000305Z

that means you don’t have it included for some reason

2016-02-02T17:22:18.000306Z

aren’t you in web worker context?

2016-02-02T17:22:20.000307Z

or iframe

2016-02-02T17:22:23.000308Z

or something like that

frank 2016-02-02T17:22:43.000309Z

no, it should be required normally

2016-02-02T17:23:02.000310Z

do you have “devtools” namespace present?

frank 2016-02-02T17:23:43.000312Z

ah

frank 2016-02-02T17:23:46.000313Z

I see the problem now

2016-02-02T17:24:03.000314Z

what?

frank 2016-02-02T17:25:31.000315Z

the unexpected identifier

frank 2016-02-02T17:25:36.000316Z

was the stupidest thing ever.

frank 2016-02-02T17:25:56.000317Z

// Compiled by ClojureScript 1.7.228 {}
Warning: environ value true has been cast to string
goog.provide('devtools.dirac');
goog.require('cljs.core');
goog.require('goog.object');
goog.require('clojure.browser.repl');

frank 2016-02-02T17:26:04.000318Z

the environ warning caused a js syntax error

2016-02-02T17:26:29.000319Z

ah, ok, makes sense

jaen 2016-02-02T23:58:04.000321Z

Can't do a better reproduction right now, but maybe it's enough for you to go on off

jaen 2016-02-02T23:58:21.000322Z

Basically wanted to print out keys of datacript database and this happened.

2016-02-02T23:59:36.000323Z

this is definitely some problem when rendering custom formatter, not really dirac issue