Fork me on GitHub
#dirac
<
2016-02-02
>
frank17:02:45

I seem to be getting weird errors in dirac

frank17:02:51

It's telling me that devtools isn't installed

frank17:02:09

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

darwin17:02:45

there could be something wrong with my implementation of the check

darwin17:02:02

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

darwin17:02:28

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

frank17:02:32

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

darwin17:02:48

so devtools.dirac is not present in your page

darwin17:02:01

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

darwin17:02:18

aren’t you in web worker context?

darwin17:02:23

or something like that

frank17:02:43

no, it should be required normally

darwin17:02:02

do you have “devtools” namespace present?

frank17:02:46

I see the problem now

frank17:02:31

the unexpected identifier

frank17:02:36

was the stupidest thing ever.

frank17:02:56

// 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');

frank17:02:04

the environ warning caused a js syntax error

darwin17:02:29

ah, ok, makes sense

jaen23:02:04

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

jaen23:02:21

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

darwin23:02:36

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