dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
richiardiandrea 2016-08-04T00:02:06.000582Z

yes it works ok and I have the warning as well

richiardiandrea 2016-08-04T00:02:15.000583Z

can cut a release happily now

superstructor 2016-08-04T00:16:47.000584Z

@richiardiandrea: nice! thanks ๐Ÿฆœ some more currency ๐Ÿ˜‰

richiardiandrea 2016-08-04T00:19:15.000585Z

thank you for the patch!

richiardiandrea 2016-08-04T00:21:35.000586Z

@superstructor: 0.1.1 should be on Clojars

superstructor 2016-08-04T00:23:07.000587Z

@richiardiandrea: thanks will test now. Also did you know you can do this in your build.boot to pass config to devtools ?

(task-options! cljs {:compiler-options {:external-config {:devtools/config {:features-to-install [:formatters :hints :async]}}}}

richiardiandrea 2016-08-04T00:24:33.000588Z

now I know ๐Ÿ™‚

richiardiandrea 2016-08-04T00:25:01.000589Z

and I was trying to pass option through the task but it does not work and I don't know why

richiardiandrea 2016-08-04T00:25:25.000590Z

for instance :dirac-opts {:log-level "DEBUG"} does not work

superstructor 2016-08-04T00:28:06.000591Z

@richiardiandrea: devtools gets the config from the compiler options external config here: https://github.com/binaryage/cljs-devtools/blob/master/src/lib/devtools/preload.clj

superstructor 2016-08-04T00:28:35.000593Z

used to be called :tooling-config but thats deprecated.

richiardiandrea 2016-08-04T00:29:13.000594Z

yeah, that above is more of a dirac option, which should work as I am passing it to dirac/boot!

superstructor 2016-08-04T00:30:04.000595Z

yeah I donโ€™t think dirac supports external-config / tooling-config yet as searching the dirac source does not find those strings (except in project.clj in relation to passing config to devtools)

superstructor 2016-08-04T00:31:08.000596Z

@richiardiandrea: devtools config options: https://github.com/binaryage/cljs-devtools/blob/master/src/lib/devtools/defaults.cljs

๐Ÿ‘ 1
danielcompton 2016-08-04T04:00:11.000605Z

Iโ€™ve added a commit discussing using RELEASE versions for dirac: https://github.com/binaryage/dirac/commit/a15a8d2ddf1d61d1ddfe58dc67b3057a528915e9?short_path=11d8910#diff-11d8910b58f5c70ccb3bedc0f37c892f

danielcompton 2016-08-04T04:00:25.000606Z

Would be interested in feedback if people think this is a bad idea

danielcompton 2016-08-04T04:00:51.000607Z

I canโ€™t see too many downsides considering that you canโ€™t use dirac if chrome plugin and lein dep arenโ€™t in sync anyway

richiardiandrea 2016-08-04T04:12:22.000608Z

@superstructor: if you feel very open-sourcy today, a PR to the readme with the way you can configure devtools like the above would be incredibly useful!

superstructor 2016-08-04T04:13:06.000609Z

@richiardiandrea: ok will do

superstructor 2016-08-04T04:13:32.000610Z

@danielcompton: some people donโ€™t use lein dep, we use boot, so what does lein dep being in sync mean please for those of us ignorant of lein ? :thinking_face:

richiardiandrea 2016-08-04T04:16:05.000613Z

I think he means if the version is not in sync, it happens in boot as well

richiardiandrea 2016-08-04T04:16:42.000614Z

In boot I guess we could write a task that checks the version of the Chrome extension and sets the version of the dep accordingly

richiardiandrea 2016-08-04T04:17:16.000615Z

This would actually be perfect for our new powerlaces/boot-cljs-devtools ;)

richiardiandrea 2016-08-04T04:21:05.000617Z

I estimate that the task would just parse some json in Chrome (maybe Darwin can help here)

danielcompton 2016-08-04T04:38:01.000618Z

Just updated the docs to remove all references to lein

danielcompton 2016-08-04T04:38:33.000619Z

There is nothing lein specific about the install instructions

danielcompton 2016-08-04T04:38:52.000620Z

AFAIK Boot will also download the latests version when you specify RELEASE

danielcompton 2016-08-04T04:39:33.000621Z

@richiardiandrea: I guess you could write a plugin, but seems like a lot of work when you can just get the deps to update automatically

๐Ÿ‘ 3
martinklepsch 2016-08-04T11:10:58.000630Z

@richiardiandrea: is it possible to use boot-cljs-devtools without dirac?

martinklepsch 2016-08-04T11:12:18.000631Z

It seems the namespace requires dirac so removing the dep would break it

2016-08-04T11:24:49.000632Z

@martinklepsch: not familiar with boot-cljs-devtools, but you could work-around it by creating empty dirac namespace in your project (and maybe implementing empty install! function there)

2016-08-04T11:25:26.000633Z

but agree that this should be addressed, most people wonโ€™t use dirac

superstructor 2016-08-04T11:36:34.000634Z

@darwin: really, why wouldnโ€™t most people use dirac ? its awesome.

2016-08-04T11:37:44.000636Z

it is an advanced tool, relatively difficult to setup and keep maintained - most people donโ€™t need that power ATM, I think

richiardiandrea 2016-08-04T14:46:01.000641Z

@martinklepsch: not at the moment, and I don't think a task for cljs-devtools would be valuable..it is so easy to add it to an existing code base...a task is a bit overkill.

richiardiandrea 2016-08-04T14:46:54.000642Z

Dirac on the other had needs to have nrepl server running and some conf, so that is why a task makes sense

richiardiandrea 2016-08-04T14:48:17.000643Z

In lambone boot dev launches the normal boot-cljs-repl and boot dev -d launches dirac nrepl (they are mutually exclusive)

2016-08-04T16:18:03.000647Z

@richiardiandrea: what about renaming the task to boot-dirac or something like that?

richiardiandrea 2016-08-04T16:20:37.000648Z

@darwin: yeah not a bad idea definitely, but it includes both ๐Ÿ™‚

2016-08-04T16:21:12.000649Z

cljs-devtools is pre-requisity for dirac, but not vice versa

2016-08-04T16:21:30.000650Z

so naming it โ€œdiracโ€ would make sense even if it includes cljs-devtools

2016-08-04T16:22:13.000651Z

technically dirac does not require cljs-devtools, but I expect everyone using dirac to use cljs-devtools as well

richiardiandrea 2016-08-04T16:24:32.000652Z

uhm understand

richiardiandrea 2016-08-04T16:24:39.000653Z

makes sense yeah

superstructor 2016-08-04T22:04:32.000661Z

yeah I think it makes sense to call it boot-dirac and focus on that use case of devtools+dirac together only, devtools alone is easy to add as a dep + :compiler-options :preloads, donโ€™t really need a task for devtools without dirac.

martinklepsch 2016-08-04T22:12:04.000664Z

@richiardiandrea: ๐Ÿ‘ Good stuff, hope you don't mind my unsolicited opinions ๐Ÿ™‚

richiardiandrea 2016-08-04T22:12:54.000665Z

@martinklepsch: absolutely not! it makes the experience better so that's all good ๐Ÿ˜„

martinklepsch 2016-08-04T22:12:59.000666Z

I wasn't aware things have become that easy with :preloads, that's amazing! (I thought you still need a separate namespace that you require in dev only and stuff)

richiardiandrea 2016-08-04T22:13:47.000667Z

well I think the thing here is that @darwin

richiardiandrea 2016-08-04T22:13:56.000668Z

awesomely added it for us

richiardiandrea 2016-08-04T22:14:05.000669Z

with cljs-devtools.preload

2016-08-04T22:15:03.000670Z

@martinklepsch: no, you donโ€™t need a namespace

2016-08-04T22:15:19.000671Z

@richiardiandrea: please don't make dirac too easy to setup. I'm not able to handle support requests from newbies getting dirac "for free" via some automated task ๐Ÿ˜‰

2016-08-04T22:16:49.000672Z

btw. guys, dirac.preload will be a thing in next release (soon-ish), so dirac setup should get easier, but I still see value in those boot tasks, they can be trivial and maybe ease upgrading process in future if I decided to change the setup anyhow

richiardiandrea 2016-08-04T22:17:58.000673Z

ah ah it is actually a collective effort so we'll try to slack a bit ๐Ÿ˜„

๐Ÿ‘ 1
richiardiandrea 2016-08-04T22:18:38.000674Z

but I know what you mean, I saw that figwheel is exploding with feedback ๐Ÿ˜‰

2016-08-04T22:19:24.000676Z

exactly bhauman is super-nice guy, so it eats a lot of his time to support people, I can imagine

richiardiandrea 2016-08-04T22:20:01.000678Z

oh yes he is, a lot of people here are actually

martinklepsch 2016-08-04T22:20:18.000679Z

๐ŸŒˆ

1
richiardiandrea 2016-08-04T22:20:25.000680Z

passionate about their work is probably the right word here

martinklepsch 2016-08-04T22:22:20.000681Z

good night folks ๐Ÿ‘‹ lovely being here ๐Ÿ™‚

2
๐Ÿ’ค 2
richiardiandrea 2016-08-04T22:22:46.000683Z

lol

richiardiandrea 2016-08-04T22:23:11.000684Z

we are missing the unicorn icon