Fork me on GitHub
#boot
<
2016-10-04
>
gerred01:10:46

is there a reason the default global BOOT_CLOJURE_VERSION is 1.7.0 instead of 1.8.0? am I going to shoot myself if I set it to 1.8.0 permenantly in my environment?

micha01:10:11

@gerred which version of boot?

micha01:10:20

2.6.0 should default to 1.8.0 i believe

micha01:10:37

but everything works fine with 1.8.0 anyway

gerred01:10:51

odd that it didn’t update it. i went through homebrew. wonder if I need to uninstall and reinstall it.

micha01:10:01

no, just edit the file 🙂

micha01:10:14

the homebrew installer doesn't handle anything

micha01:10:19

it just downloads boot.sh

gerred01:10:22

is there a global file? or do I just need to set the env var?

micha01:10:35

oh you should have a file in ~/.boot/boot.properties

gerred01:10:49

that’s exactly what it was. I must’ve had an old one.

gerred01:10:54

from a much earlier run.

micha01:10:00

you can also have boot.properties in a project dir

gerred01:10:04

yeah saw that

gerred01:10:06

which is 👍

micha01:10:11

so you can pin the version of clojure and boot for a project

micha01:10:28

you will want to have an explicit clojure dependency in your build.boot file though

gerred01:10:18

oh sure. i need to be thinking more in terms of projects anyway.

gerred01:10:57

i’m finally giving comparing lein and boot a shot, I don’t know a huge amount about either.

micha01:10:27

what kind of project are you working on @gerred ?

gerred01:10:56

right now a reagent project.

pesterhazy09:10:07

Sometimes when starting up my project (`boot dev`) I see random errors like this one: java.lang.RuntimeException: No such var: async/remove<, compiling: (my.code) But obviously that var exists. Usually if I restart the process, it works again.

pesterhazy09:10:52

I think it's a kind of timing problem or race condition as it happens more often when the system is doing something in the background at the same time (e.g. starting up datomic)

pesterhazy09:10:48

I"m not sure if it's about clojurescript compilation or the clojure part of the system.

naomarik15:10:52

there any downsides/caveats on having a project.clj for figwheel/frontend only to mix with a boot project?

dominicm15:10:34

@naomarik > for figwheel/frontend only I don't understand why you wouldn't just do it in boot (boot can do a figwheel setup too!) --- You will need to make sure that target is different for leiningen and boot if they're running as siblings.

naomarik15:10:29

any examples of using figwheel with boot?

dominicm15:10:44

Figwheel itself? Nope.

dominicm15:10:55

https://github.com/adzerk-oss/boot-cljs-example gives a setup which works the same though. HUD and everything 🙂

dominicm15:10:12

Apparently it's not quite as good at reporting error messages in a pretty way, but otherwise it's the same.

naomarik15:10:44

yeah using boot cljs but i recently saw figwheel's errors and looked immensely easier

dominicm15:10:47

@naomarik I've never been able to figure out the significance of difference in reporting. Could you describe the big improvement to me?

naomarik15:10:10

@dominicm I've not really used figwheel much, been using boot-cljs ever since I started because at that time I couldn't for the life of me get my repl connected to figwheel. I just recently ran a new figwheel project to see what it has and it shows your source code in the browser with a helpful message, so it looks a lot easier to pinpoint silly mistakes

naomarik15:10:47

the screenshot the figwheel has on the project is out of date to what it actually looks like now

dominicm15:10:50

@naomarik I've never really seen that as much more useful. I look at the line number of the error, and go to it in my editor, and look there.

dominicm15:10:53

Yeah, I know the screenshot is outdated. I was hacking on Figwheel recently, so I have used it.

dominicm15:10:51

https://github.com/adzerk-oss/boot-cljs/blob/master/src/adzerk/boot_cljs.clj#L160-L163 looks like these lines add metadata to the fileset when there's a warning in compilation. You could look at how figwheel finds the source and open a PR to attach this in the metadata.

dominicm15:10:05

Then the boot-reload project would also need some code to display that code.

kenny18:10:58

Is there a way to do boot show -U without downloading all the dependencies?

therabidbanana21:10:15

Is there anyway I could fake something like (ns ^:figwheel-always ) with boot-reload / boot-cljs?

therabidbanana21:10:59

I'm experimenting with :recompile-dependents false on our cljs compilation step which has significantly improved reload times, but our test-runner needs to always act like it's reloading.

anmonteiro23:10:17

is there a way to set environment variables for a boot.util/dosh command?

anmonteiro23:10:27

(other than using e.g. environ)