Fork me on GitHub
#boot
<
2016-02-20
>
mil04:02:06

is there a way to force boot-reload to re-require namespaces, i'm running into an issue where i change a string's value def'd in a file/namespace which isn't my core entry point for cljs-boot (its' required) and it will trigger a reload, but the variable isn't actually updated to the new string... if i move the exact def into my core cljs entrypoint and change the string there, reloading works fine and saving triggers a reload and accurately updates the variable

micha05:02:30

@mil: you can save the file of the namespace you want to reload

mil06:02:49

@micha thanks -- figured out it was an issue with a fn not re-running in my separate ns and wound up solving it by atom deref'ing

mobileink16:02:33

A simple task lib and app, intended to make it easier to explore boot by learning how to break things

mobileink16:02:32

It's very minimal at the moment but I expect to add bits as I learn more about how not to do things. 😉

alandipert17:02:05

@mobileink: that's a neat idea

mobileink17:02:18

I love to bust stuff.

mobileink17:02:53

A related idea you might consider for version 3.0: treat test cases as documentation. I've switched to this on my projects - carefully written, the test cases express something close to the axioms of an algebra. so reading the test cases and reading the source code are dual. might be very useful for boot, where I've had to do lots of experimenting.

mobileink18:02:09

how can I capture stdout from dosh? This isn't working: (let [info (with-out-str (boot.util/dosh "bower" "info" ~package))]...). When run this prints the cmd output to screen and does not bind it to info.

richiardiandrea18:02:16

what is the best way of solving a lein bug? Switch to boot 😄

richiardiandrea18:02:58

no ok, I was joking, have you guys any idea of how this can be possible? https://github.com/emezeske/lein-cljsbuild/issues/439

micha18:02:19

@mobileink: if you want to capture the output i think you probably want to use the clojure.shell/sh function instead

micha18:02:35

the boot dosh functions are for when you want to stream the output to the user mostly

micha18:02:53

like as it's produced, instead of after the process is finished

micha18:02:36

alternatively you can do some shuffling around with *out* and *err* perhaps

micha18:02:57

but i haven't tried so there are probably weird things with that

micha19:02:04

@richiardiandrea: yes this is a problem caused by not having pods simple_smile

micha19:02:36

lein adds ghost dependencies to your project in certain profiles which can interfere with your own dependencies

micha19:02:47

i ran into this with boot as well

micha19:02:52

with nrepl

richiardiandrea21:02:29

Hey @micha you're definitely right...btw I don't know if you've already done it but I have a fix for improving #401, so please wait for it before merging ok?