Fork me on GitHub
#boot
<
2017-01-25
>
ag01:01:13

hey guys, so I have this:

(notify :audible true :theme "woodblock"
            :visual true :title “my-silly-project”)
It fails to run terminal-notifier when hits the exception

ag02:01:23

oh, it seems to be zsh thing. terminal-notifier seems to be broken in zsh

qqq12:01:20

I'm not sure what I changed. https://github.com/magomimmo/modern-cljs/blob/master/doc/second-edition/tutorial-02.md#browser-repl-brepl is suddenly not working for me: "boot dev" is running on localhost:3000 with <ws://localhost:54222> boot repl --client // (start-repl) is saying conection is at <ws://localhost:54239> and my browser, upon visiting localhost:3000 , is trying to connect to <ws://localhost:54179>

qqq12:01:44

n/m, got it working

pesterhazy12:01:56

@qqq, the answer with these issues is usually to hard-reload the browser

qqq12:01:09

not this case

qqq12:01:30

in this case, it was becuase the two boots "talk" to each other via ./target/adzerk/boot_reload.cojs (which is one of them telling th eother which port to listen to)

qqq12:01:38

but I forgot to (target -d that path) in my build.boot

qqq12:01:05

(the two boots as in how "boot dev" and "boot repl -c // (start-repl)" agree on which port the ws for brepl is listening on)

qqq12:01:06

============== I do have a new question though: I have two computers. I want my browser running on a different computer from boot // so now I need to change "<ws://localhost:54288>" to "<ws://ip-address:port>" how do I tell boot "point the ws at a particular ip address, rather than localhost" ?

pesterhazy12:01:37

why do you want that?

qqq12:01:58

oh, I want to put the browser on a laptop screen

qqq12:01:05

so I can use the extra screen space

qqq12:01:29

here's the case: I have two laptops; I want emacs/boot on one laptop, and I want the browser displaying on a different laptop

pesterhazy12:01:32

not sure if it's possible with cljs-repl

qqq12:01:41

I got it working once with lein

qqq12:01:43

aright, one last question

qqq12:01:00

instead of "boot -h" // which suffers a jvm startup time every time I look something up is it posisble, inside a "boot repl" to lookup the documentation ?

qqq12:01:13

so I wnat to lookup documentation inside a boot repl, instead of "lookup documentation via calling boot from the shell"

pesterhazy12:01:06

(doc boot.task.built-in/watch)

qqq12:01:35

boot -d adzerk/boot-cljs-repl cljs-repl -h // shows an --ip option

qqq12:01:44

how do I specify the ip in my build.boot ? @peterhazy

qqq12:01:18

ha! got it working!

qqq12:01:43

for anyone who's curious, it's (cjs-repl :ip (.getHostAddress (java.net.InetAddress/getLocalHost)))

qqq14:01:52

is there a way to tell the cljs task to put the output somewhere besides "./out" ? I want it to be placed in "./gen/out"

qqq14:01:16

is it possible to stuff "boot dev" and "boot repl -c // (start-repl)" into a single repl session? I'm okay if the output of the two "overlap"

alandipert15:01:40

@qqq you can move stuff around in the fileset arbitrarily with the sift task

qqq15:01:54

@alandipert: I'm not sure how this helps me

qqq15:01:03

when I run "(start-repl)" it "takes over the console, and I can't run anything else"

qqq15:01:13

similarly, when I run "(boot (dev))", it "takes over the console, andI can't run anything else"

qqq15:01:20

so it's not clear to me how I can run both from the same "boot repl"

alandipert15:01:20

oh, i don't know how to do the second thing... this is in reference to moving files from out

alandipert15:01:03

i don't use any cljs repls but a thing to try maybe is (def f (future (boot (dev)))) and then (start-repl) maybe?

alandipert15:01:18

i don't know what your dev task does or what the start-repl function is so ymmv

alandipert15:01:33

then to kill the build you can do (future-cancel f)

qqq15:01:57

on second thought, this is a bad idea on my aprt

qqq15:01:21

since (star-trepl) depends on the other process ot generate target/main.out/adzerk/boot_cljs_repl.cljs

qqq15:01:24

to get the port number

qqq15:01:56

perhaps, I should rephrase my question sas follows: ========== right now, I have to dl M-x eshell // boot dev is there a way to in emacs, direclty do "run boot dev and send its output to this buffer" ?

qqq15:01:23

I don't have to control which buffer the output it goes to; "run boot dev, and give me a buffer with its running output" is perfectly fine as well

alandipert15:01:57

probably M-x (e)shell is most straightforward

qqq15:01:07

(shell-command "boot dev &") // this works, the & means async / don't wait

alandipert15:01:01

yeah if you do a little bit more elisp you can make a function that creates a buffer and sends the output to it

qqq15:01:24

yeah, working on that at the moment; it's so amazing how hackable emacs/boot are

qqq15:01:31

"lego blocks for your own ide"

richiardiandrea16:01:33

@qqq cider already does that for lein, but does not have support for boot (but an issue is open), are you using cider?

richiardiandrea16:01:59

Also, can you share your emacs lisp only version, I am curious 😀😀

qqq16:01:33

@richiardiandrea : my entire 'ide' at the moment is just inferior-lisp + clojure-mode + a hook of

(defun my-clojure-setup()
  (setq-local inferior-lisp-program "boot repl -c")
  (define-key clojure-mode-map (kbd "C-x C-e") 'lisp-eval-lastp-sexp))
the stuff that makes me execited are: (1) how prorgrammable boot is (2) a weird setup where my entire project is a single or-gmode file, which I then tangle to get all the source code + configs (3) using lein + cider, I never goot brepl / cljs-ack-in to work ... with boot, I have bREpl not only working -- but also working in a way I can program / customize it so yeah -- not much substance, alot of excitement though

alandipert16:01:42

so many tools and environments want to take away programming because they think it's not good for you

alandipert16:01:55

but they're wrong! need to be able to program everything!

qqq16:01:17

yeah, the irony is programming tools being un-programmable -- wtf

alandipert16:01:25

a disturbing trend

qqq16:01:14

you know what's the best way to fix it? build programmable tools -- get programmers who use programmable tools to be 10x as efficient -- and let darwanian evolution / market efficiency take care of the rest 🙂

alandipert16:01:26

at least it defers the mindset. because inevitably, a % of the programmers handed the programmable tool have the idea to remove the programming before giving it to other programmers

richiardiandrea16:01:04

Agree, @qqq I like your setup! I have been thinking of switching from cider to inf-clojure. Also, here is the issue I was taking about https://github.com/clojure-emacs/cider/issues/1881

qqq17:01:27

@richiardiandrea : the thing that really clicked for me was when I realized: (1) I wasn't using most of cider's power (2) all I really need are "eval last sexp" and "eval entire buffer" (3) 99% of my debugging involves (1) creating a hiccup [:pre ] element, and shoving a pretty-print in it -- however nice cider inspect is, I just prefer to see the entire data, in the UI/browser, at where it's being used

richiardiandrea17:01:27

Yeah I tend to use some features, but not all actually. I like the switching namespace and lord feature for instance.. and tests mostly. Nothing you cannot add to inf-clojure to be honest

qqq17:01:26

the other nice thing about adding things piece by piece (and this is why I use from scratch bindings rather then apsacemacs) is that you can add new features confidently, without fear of "oh shit, does this break some piece of code I'm not even ware of -- which large projects tend to give of the vibe of" I should also admit, at this point, we should probably move to #off-topic, as we've pulled this conversation quite far from #boot 🙂

richiardiandrea17:01:44

Yeah indeed 😄 t's OK, I am a big emacs and boot fan so I guess my curiosity stemmed from understanding how much effort would require to move to inf-clojure

richiardiandrea17:01:03

And of course I would not want to be less efficient 😀

martinklepsch18:01:55

Wasn’t there an option that would do me something like boot -X '(println “abc”)'

martinklepsch18:01:19

ah, boot -i apparently

emergence19:01:08

Hi -- has anyone had an issue similar to this: Using boot to run a clj/s test suite on CircleCI (with some clojure.spec tests). When tests fail, CircleCI does not recognize and says tests were successful. I think it's because an exit code of 0 was returned but I'm wondering if there's more going on.

andrewboltachev21:01:42

Hi. How do I make boot to use Clojure 1.8.0?

alandipert21:01:39

@andrewboltachev you can set BOOT_CLOJURE_VERSION=1.8.0, set it in ~/.boot/boot.properties, or set in in a director-local boot.properties

andrewboltachev21:01:13

@alandipert thanks, but is 1.7.0 the default?

alandipert21:01:40

not sure, it depends on when you installed boot

alandipert21:01:54

through 1.8.0 is supported tho

qqq21:01:05

1.9.0-alpha14 working fine for me so far

andrewboltachev21:01:16

I've just re-installed it (i.e. sudo rm /usr/local/bin/boot and then install)

andrewboltachev21:01:11

but seems still it's 1.7.0. Well, boot.properties is also an option

alandipert21:01:24

~/.boot/boot.properties is the canonical 'global' place to set it

micha21:01:50

@andrewboltachev you probably have a boot.properties file already

micha21:01:54

with 1.7.0 set in there

mobileink21:01:12

@andrewboltachev i do sth like boot -u > boot.properties.

mobileink22:01:26

working on a boot-aws thingie. if interested, see the #aws channel.

qqq23:01:23

do I need to do anything special to get boot to work with amcros in cljc files/?

qqq23:01:34

i.e. suppose it works in lein, do I need to do anything special to get boot to support macros?

richiardiandrea23:01:15

@qqq I assume in cljs? The answer is no, support is handled by the compiler, be sure that the files are on the classpath only

qqq23:01:21

if I have (set-env! :source-paths #{"src/"}) and the *.cljc file is in src/foo/bar.cljc , is this the same as "on the classpath only" <-- no idea what this phrase means

richiardiandrea23:01:09

@qqq yes it should be ok

richiardiandrea23:01:40

also, but I don't think it matters, I usually use "src"

richiardiandrea23:01:10

third thing, are you using :require-macros or :include-macros true for your namespace?