Fork me on GitHub
#boot
<
2017-06-26
>
shdzzl01:06:17

I ended up using filter, re-find and extracting :path manually, ha. I missed by-re completely, thanks @richiardiandrea

mobileink04:06:20

how can I set :repl-verbose in boot-cljs-repl?

minikomi07:06:40

Hiya. I’m thinking of writing a task which takes a CSV file, and then creates an HTML file based on each row, and also moves / generates some thumbnails from images based on each row. I’m thinking that it the metadata-generating should be one task, then the image moving, then the rendering (since the rendering will rely on the number of images, filenames of images..) Still new to boot, but should I create and commit! blank files during the csv-parse step, with some metadata attached, adjust that metadata for the images step, and then use the metadata in the rendering step?

mobileink13:06:54

(cljs-repl :nrepl-opts {:repl-verbose true}) does not seem to work.

alandipert14:06:42

@minikomi i might produce a manifest-type EDN file in the fileset, with a meaningful extension, instead of metadata

minikomi14:06:57

Interesting. Like a .csv.edn ? Which I can sift out easily but also filer and use as a basis for creating individual HTML pages or index pages

mobileink16:06:41

juhoteperi: seems to work, thanks!

richiardiandrea15:06:53

Soooo @juhoteperi I was discussing with Darwin for Dirac integration in boot. Are we doing something currently for syncing state between boot-cljs and the browser when somebody evaluates in boot-cljs-repl?

richiardiandrea15:06:16

I could not find anything just wanted to double check

lwhorton15:06:31

hmm am I doing something dumb? I cannot get the boot repl -c to use the clojure version specified in my boot.properties file

lwhorton15:06:44

does it not work with alpha versions, i.e. 1.9.0-alpha16?

richiardiandrea15:06:15

Do you have something else in your dependencies?

lwhorton15:06:50

i wonder … if i’m running two boot repls at the same time, how does the task know which one to connect to? depending on the dir in which i’m running the command, maybe?

richiardiandrea15:06:52

They cannot have the same port locally ...otherwise you can pass host and port

richiardiandrea15:06:13

(if I understand right)

lwhorton15:06:22

i know there’s some .nrepl files dropped locally when you start up the task hosting the repl, and those both show different ports depending on the pwd

richiardiandrea15:06:29

Yes there is .nrepl-port used in lein, I am not 100% sure boot does the same

lwhorton15:06:45

just so peculiar that the boot startup script is ignoring the properties file

richiardiandrea15:06:59

Assuming the repl runs in a pod, you would inherit the env of you build.boot

richiardiandrea16:06:29

So if another Clojure version wins, then you might have that one

lwhorton16:06:52

hah; if you change the boot.properties after running the boot task which starts a repl, it (rightfully) doesn’t automagically change the clojure version when you then invoke repl -c

Tim16:06:24

question about workflow: I often do (clojure.core/load-file "./build.boot") in order to load code from the build.boot file in the repl. (use 'boot.user :reload) does not work. Is calling load-file the idiomatic way of doing this?

alandipert18:06:16

another idiom is, when your build.boot gets big, factor it into namespaces and deftasks in src/

alandipert18:06:37

that also puts code on the classpath so you can require it