dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
p-himik 2020-01-12T11:47:46.000700Z

Just got an interesting log message:

[2020-01-12 13:45:31.565 - INFO] filename violation for ns dirac.playground, got: dirac/playground-template/src/dirac/playground.cljs expected: dirac/playground.cljs (or .cljc)
Not sure what outputs it.

p-himik 2020-01-12T11:48:24.001Z

And I'm not sure how playground-template ends up in the jar.

p-himik 2020-01-12T11:48:36.001200Z

Diract 1.5.2.

2020-01-12T14:48:15.002500Z

this looks like a message from cljs compiler - it found playground.cljs on classpath before it looked on disk, my intention was to extract playground-template from jar to disk and then compile it from on-disk files

2020-01-12T14:51:59.003200Z

I wonder why I’m not seeing that message when I run dirac

2020-01-12T14:58:14.003700Z

just googled a bit and it looks like the message is produced by shadow-cljs: https://github.com/thheller/shadow-cljs/blob/master/src/main/shadow/build/classpath.clj#L696

2020-01-12T15:00:16.005Z

now it makes sense, shadow-cljs indexes all cljs resources and because you have a dep on dirac and dirac has this template directory in its jar, shadow-cljs reports this problem

2020-01-12T15:23:40.005300Z

this should work around it: https://github.com/binaryage/dirac/commit/b68da36fdf45675668d29bf85b64ca13082715df

p-himik 2020-01-13T18:17:19.012Z

Just checked - seems like it worked indeed!

👍 1
p-himik 2020-01-12T17:29:51.006600Z

Nice, thanks! I'll try it out when it's released. BTW do you plan to add deps.edn so that Dirac could be used directly from Git by tools.deps?

2020-01-12T17:30:25.007Z

it should work, but it is not officially supported, the deps could outdated

2020-01-12T17:31:20.008Z

I’m considering breaking dirac.jar into multiple jars with less deps, e.g. dirac-runtime, dirac-nrepl and dirac-cli

2020-01-12T17:31:46.008700Z

this way we would avoid future clashes, because dirac-cli would not pollute user’s project which is including dirac-runtime

2020-01-12T17:32:08.009100Z

by pollute I mean bringing in heavy deps

p-himik 2020-01-12T17:37:57.010100Z

Oh, sorry - I must be blind, I didn't notice the file was there the first time I looked. Splitting into multiple jars sounds nice!

2020-01-12T17:38:38.010700Z

btw. you can do env DIRAC_CLI_VERSION=master dirac, this will use master version

2020-01-12T17:39:00.011300Z

but only for cli tool, this won’t affect deps in your project

2020-01-12T17:40:28.011800Z

when launched that way, it uses that deps.edn AFAIK