Fork me on GitHub
#dirac
<
2016-01-14
>
jaen16:01:18

Started trying it out, first with the sample project, but lein dirac in the sample project complains about analyzer.clj not being on the path. Should I be running something else first (like lein deps)?

jaen17:01:32

Couldn't get the demo project work

jaen17:01:37

But my project works okay it seems.

jaen17:01:43

Now off to play with it.

jaen17:01:53

One thing I notice is I can't seem to dock the tools like I can do with those built-in into Chrome.

jaen17:01:32

Out of curiosity, is completion something that is possible to implement?

jaen17:01:02

I also get:

> (in-ns 'scrabble.frontend.synchronisation.core)
nil
> db
WARNING: Use of undeclared Var scrabble.frontend.synchronisation.core/db at line 1 <dirac repl>
*value of datascript db*

jaen17:01:14

I'm not sure if I'm doing something wrong or does dirac not have enough compile-time information to tell it's valid.

darwin22:01:19

@jaen: don’t know anything about analyzer.clj, maybe I’m missing some dependency there, but in my environ it gets included automatically for some reason

darwin22:01:03

docking won’t work, that is a feature hard-coded into chrome to support integrated devtools

darwin22:01:51

completion is definitely possible to implement, at least for javascript context it is already implemented, for cljs context it would need to talk to sone nREPL middleware which will provide the data

darwin22:01:13

that code exists, but I haven’t looked into it yet

jaen22:01:47

Gotcha. One more question - do you also observer the Clojure input in console taking more space than Javascript input?

darwin22:01:31

you mean styling?

darwin22:01:46

I observed broken styles when in “drawer” mode on Sources panel

darwin22:01:54

it takes too much vertical space

darwin22:01:31

also I observed “floating” of console content, like it would print with some styles and then after a moment some other styles were applied and text jumps slightly

darwin22:01:48

it is a bit annoying

darwin22:01:39

btw. are you on a Mac? I use SizeUp for window management and it is quite convenient to have devtools in a new window, then I can use my windowing keyboard shortcuts to arrange it

jaen22:01:53

Mac? Nah, Arch Loonix.

jaen22:01:07

> I observed broken styles when in “drawer” mode on Sources panel > it takes too much vertical space

jaen22:01:14

Yeah, that would be how I would describe it.

jaen22:01:31

And yes, it does also jump a bit when you evaluate something

jaen22:01:34

And it wants to scroll

darwin22:01:43

I will fix those css issues

darwin22:01:53

just have to figure out what is going on there

darwin22:01:34

btw: a protip: when you open Dirac extension options, you can switch opening mode to “window” and then you can have integrated devtools for inspection of dirac devtools app

darwin22:01:08

handy if you wanted to inspect the html, code is compiled with advanced optimizations tough

jaen22:01:15

But yeah, I use a tiling WM so I also just conveniently tiled it alongside the main window. It's just kind of my first reflex to dock it instead for some reason '

jaen22:01:25

Also good to know re: being able to devtools the devtools.

darwin22:01:23

it is “just” a webapp, which has web socket connection to chrome with open debugging protocol

darwin22:01:00

it is also quite easy to use it from sources, you just point a static webserver to their sources directory and it works

jaen22:01:47

Sources as in checkout the github repo, compile, serve and voila?

darwin22:01:34

yep, in case of dirac, you just need to compile clojurescript sources as well, this is the script for static server I was using: https://github.com/binaryage/dirac/blob/master/scripts/dev-server.sh and lein fig to get sources compiled (in dev mode)

darwin22:01:13

in another words, you don’t have to mess with the Chrome Extension wrapper if you want to quickly hack on it in source form

jaen22:01:37

Ah, I see. That seems to be pretty handy.