Fork me on GitHub
#boot
<
2015-11-19
>
xifi11:11:01

Downloaded latest boot.exe. Running boot dev and changing a file gives me this huge list of "Couldn't delete" exceptions I updated boot and deleted the ~/.boot/cache and properties files, still same issue. I have BOOT_HOME set in win7 variables. My boot -V

#
#Thu Nov 19 12:08:46 CET 2015
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_VERSION=2.4.2
BOOT_CLOJURE_VERSION=1.7.0
#App version: 2.4.2
I'm using the latest clojure (`1.8.0-RC2`) and cljs (`1.7.170`) which should already contain the fixes for file handle leaks.

martinklepsch11:11:17

@xifi the output shows clojure 1.7.0

xifi11:11:42

@martinklepsch: yeah the boot.properties file from the lein template has that set up. I'll try and change it to 1.8.0-RC2

xifi11:11:00

#
#Thu Nov 19 12:37:15 CET 2015
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_VERSION=2.4.2
BOOT_CLOJURE_VERSION=1.8.0-RC2
#App version: 2.4.2
still same results

martinklepsch11:11:15

Can you paste a complete exception?

xifi11:11:06

working on it, pc really slow

martinklepsch11:11:01

@xifi: do you have a root dir “home”? is the project on the same disk as $BOOT_HOME?

xifi11:11:00

@martinklepsch: I only have one disk, C:\. The first part I don't understand simple_smile I do have an env variable HOME set to C:\home but some applications honor that and some don't. Here it decides to use my user's path C:\Users\IBM_ADMIN as the base

xifi11:11:27

since the user path was the one used by default I added an env var for BOOT_HOME pointing to the same place, C:\Users\IBM_ADMIN

martinklepsch11:11:45

C:\Users\IBM_ADMIN\.boot\cache\tmp\home\code\cljs\address-book\5xw\11lgcg\index.html the bit behind tmp is from a root dir, that’s why I asked.

xifi11:11:15

I see. My code lives in C:\home\code\cljs\address-book\

martinklepsch11:11:00

That said I don’t know what’s going on, there are some issues with cache dir and project dir not being on the same disk but that does not seem applicable in your case

martinklepsch11:11:28

I’d suggest creating a minimal case and opening an issue on Github

xifi11:11:48

I used to have this issue before cljs had a file handle leak fix

xifi11:11:17

after the fix it worked fine, now coming back after a month or two I have the same issue :O

martinklepsch11:11:01

The issue also occurs with files outside of cljs’ control like index.html so it seems more like a boot issue to me

martinklepsch11:11:30

have you tried with boot v2.3.0? maybe there’s a windows regression in 2.4.2?

xifi11:11:12

will check

xifi12:11:30

nope, happens on 2.3.0 as well

martinklepsch12:11:08

maybe try with 2.2.0 as well just to be sure

martinklepsch12:11:56

tracking down the change you made in your project that made this issue reappear would be most helpful simple_smile

xifi13:11:47

@martinklepsch: testing now. I didn't make any change to a project, I just started going through the hoplon tutorial as a refresher

xifi13:11:23

same with 2.2.0, tried both clojure 1.7.0 and 1.8.0-RC2

alqvist14:11:35

Anyone have a working setup for using Expectations with Boot?

onetom16:11:53

btw, ppl, have u read the "What Software is Made Of" article? http://siderea.livejournal.com/1241996.html?format=light im curious what do u think...

bsima19:11:18

I'm confused about how to write a filter for the boot-test task

bsima19:11:18

Am I supposed to be passing anonymous functions to the :filter flag, or just function names?

martinklepsch19:11:59

@bsima: seems you’re supposed to pass anon fns

bsima19:11:51

¯\(ツ)

bsima20:11:45

I think that is inlining the filter functions you provide into (fn [%] (and ...), then wrapping that lambda in test-ns* with a partial, then mapping that over the collection of namespaces

bsima20:11:52

(map (partial test-ns* (fn [%] (and my-filters))) namespaces) where my-filters are the filter functions you provide, and namespaces is the seq of namespaces that boot can find

martinklepsch20:11:55

Tried without the #?

bsima20:11:10

yeah, didn't work

bsima20:11:39

boot test -f '(println %) just hangs, I'm not sure why

martinklepsch20:11:42

with a single quote?

martinklepsch20:11:52

I guess your shell waits for end of string?

bsima20:11:59

oh duh lol

martinklepsch20:11:04

try boot test -f (println %)

martinklepsch20:11:28

admittedly that API is strange and should probably be changed to something similar to this: https://github.com/hashobject/perun/blob/master/src/io/perun.clj#L262

bsima20:11:59

I tried that too. See above snippet I posted, I just get back "unable to resolve symbol"

bsima20:11:34

I mean, the current api is really lispy and (I think) lets you chain filters together, but I just need a few examples to figure out how to use it

upgradingdave20:11:16

@martinklepsch, @alqvist I’ve been using that expect boot task on a side project and it’s a little rough but gets the job done for me at least if you have any trouble with it, please let me know

bsima20:11:24

This is weird: taking a cue from the upgradingdave-boot readme, I tried boot test -f "(= \"test.profiler\" %)". That printed out the names of all my namespaces, but ran zero tests

bsima20:11:43

I was trying to run just the test.profiler namespace

martinklepsch20:11:16

did you somehow still have the previous println filter function?

bsima20:11:24

this is my entire boot file:

bsima20:11:47

i'm using it on top of lein

bsima21:11:59

i'll file an issue and get back to this later. gotta do some real work ¯\(ツ)

bsima21:11:06

I think I got this to work boot test -f "(re-matcher #\".*test.*\" (str %))"

bsima21:11:30

that should run the tests on any namespace with "test" in its name

bsima21:11:53

the thing is, the test runner still prints the names of namespaces that it isn't testing

bensu22:11:54

does anybody have a public project that uses tailrecursion/clojure-adapter-servlet or https://github.com/adzerk-oss/boot-beanstalk?

bensu22:11:23

I'm having trouble configuring the war

alandipert22:11:23

@bensu: what are you deploying to?

bensu22:11:27

Elastic beanstalk, "64bit Amazon Linux 2015.09 v2.0.4 running Tomcat 7 Java 7"

bensu22:11:46

but I wouldn't have a problem changing the image

alandipert22:11:53

so i think what you want is a combination of the web, uber, and war tasks

alandipert22:11:12

that's what we tend to do now, and then use the aws cli to deploy it

bensu22:11:43

yeah, I'm using all of them (comp (build) (web) (uber) (war))

bensu22:11:53

with build being the frontend part

bensu23:11:55

is there a reason not to use the beanstalk task?