This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-02
Channels
- # admin-announcements (33)
- # announcements (2)
- # beginners (75)
- # boot (340)
- # braid-chat (6)
- # cider (30)
- # cljsrn (44)
- # clojars (19)
- # clojure (169)
- # clojure-austin (12)
- # clojure-czech (1)
- # clojure-japan (6)
- # clojure-miami (1)
- # clojure-poland (7)
- # clojure-russia (83)
- # clojurebridge (4)
- # clojurescript (166)
- # community-development (55)
- # component (2)
- # core-async (39)
- # core-matrix (3)
- # cursive (32)
- # data-science (3)
- # datavis (3)
- # datomic (58)
- # dirac (28)
- # emacs (4)
- # events (7)
- # hoplon (254)
- # immutant (29)
- # jobs (2)
- # jobs-discuss (4)
- # ldnclj (35)
- # lein-figwheel (3)
- # mount (202)
- # off-topic (9)
- # om (123)
- # onyx (22)
- # parinfer (112)
- # proton (11)
- # re-frame (6)
- # reagent (43)
- # ring (3)
- # spacemacs (2)
Sorry, was out rescuing my wife. Car troubles.
might be missing something obvious.. if I want to send -D
param to a task / boot repl
, is this the only way: https://github.com/boot-clj/boot/wiki/JVM-Options#per-project-settings ?
@tolitius: probably; I guess that's the downside of having a single jvm
might be worth adding to https://github.com/boot-clj/boot/wiki/Boot-for-Leiningen-Users e.g. to point out that something like:
:profiles {:dev {:jvm-opts ["-Dparam=value" "-Xmx4g"]}}
can be just done with (System/setProperty "foo" "bar")
and per task if neededmakes sense, ok, I am not going to mention JVM args per say, will just give a -D
example, as it is most useful (I think)
oops, didn't know that you could set properties after startup
forgot it's just a wiki, so no PR is needed: https://github.com/boot-clj/boot/wiki/Boot-for-Leiningen-Users#environment-variables
Hi, I just started using boot a few hours ago and making lots of progress so far with my cljs project. (tenzing template)… but now I do need a compojure server… is there anywhere an example where I can have a look at see how it is done?
@thomas: there is boot-system which might be interesting if you're a fan of component
other than that also deraen's saapas example project uses compojure
good morning @martinklepsch, welcome @thomas
@thomas, you can also just run random code from boot, like starting a http-kit
server
you don't actually need a pre-built task for that
thank you @pesterhazy
guys i'm pretty convinced there is some real issue with boot 2.5.x wrt how it retrieves dependencies
i was talking about it 2 weeks ago here -- basically when I run boot through docker, it hangs when downloading deps that aren't in the cache
yeah I think we realized that it wouldn't work b/c this is happening prior to when -v kicks in
so let me add the -v flag and run it inside and outside docker and see what's different
the output when it hangs with docker is here: http://sprunge.us/AEDC
is there a chance that https://github.com/seancorfield/boot-new task will join the boot core in the future ?
sure, i think if @seancorfield agrees sure
it's so much nicer to work on something runnable rather than a template that needs to be compiled and then run to be debugged
it is true that atm I am git cloning my projects and doing a replace of the old name for a new one globaly 😄
@yenda: I have been doing that and I don't miss lein new
, and I really don't miss maintaining templates
so we don't need to keep pushing new commits to the template repo whenever anything updates
yeah i am a believer, just sometimes the cost of the automation hides itself in a couple of breezy first runs...
like, the :success
stage just never comes after it has downloaded almost all of the jar file
what i have observed is that this never happened with boot <=2.3.x inside/outside docker
but it does with 2.5.x, but only inside docker, which is mounting .m2/repository from the host
yeah... i've held off on an issue since there's a lot of moving parts, namely docker
@micha does the new issue I just submitted --boot-reload #60--look to you like a file separator issue again?
@micha thanks for looking at it; it's an annoyance but not a showstopper... I'll hold off on an issue for now...
@laforge49: ok that looks like a boot issue now
Now there are just two: https://github.com/boot-clj/boot/issues/397 https://github.com/crisptrutski/boot-cljs-test/issues/42
cheers @micha -- I already have that very well optimized -- it never downloads anything twice
I see that you are talking about docker, if you need specific infos about the internals "I know a guy" 😄
in aademo/lens I reference resource but there is none. normally nothing happens but now I get this:
When you upgrade to 2.6.0-snapshot, you need to delete the bogus resource-paths in the build.boot.
but having such fun today closing all these windows issues because of 2.6.0-SNAPSHOT!!!
With reload now working with boot 2.6.6-SNAPSHOT, the only issue I am left with on windows is unit testing with phantomJS!!!
Here's the details: https://github.com/crisptrutski/boot-cljs-test/issues/42
Hmh, what is jetty mapped files?
@micha As I'm playing around with it, I think volumes are essential to our docker-based workflow, especially to getting e.g. a live-reloading frontend env, where the UI updates when source code changes
"Jetty uses memory-mapped files to buffer static content,"?
(I'm remembering why I never pursued COPY
ing source into specific docker images for our app in dev -- that is a huge limitation)
jetty uses mapped io by default. On windows, a file can not be deleted if in use. So the default causes a problem. This was fixed earlier we believe, but has come up again in the new boot snapshot.
Yeah, totally, I just wasn’t sure boot-new
was ready to be offered up yet… didn’t want to "presume"… https://clojurians.slack.com/archives/boot/p1454429448001656
(and "morning!")
so here's the fix for jetty, thanks as usual to micha: (serve :port 8000 :init-params {"org.eclipse.jetty.servlet.Default.useFileMappedBuffer" "false"})
Looks like the even Jetty docs mentions that memory-mapped files don't work on Windows
Not sure if that's something that Boot can go around?
if some process is locking a file and the file changes, i'm not sure what could be done there
in windows if i open some system file in notepad does that mean the system can't write to it?
like if i open the equivalent of /etc/passwd in notepad, nobody can change their password?
and to my knowledge, there are no backdoors to killing processes that keep files open. In extreme cases, when I can't figure it out, I log off or even reboot.
As a long-term windows user, I'll admit to never having been a fan. And I can't stand windows path names.
i remember reading about daemons you can run on your windows machine that will delete files whenever they can
but forget all that. Have a couple on me tonight Micha! Thanks ever so much for 2.6.0-SNAPSHOT!
i recommend this: https://docs.docker.com/engine/installation/windows/
@micha perhaps a link to that docker install and how to use it would be helpful for other windows users — put on boot wiki?
Hello all, im getting this weird message when i try to run my dev boot task:
Feb 02, 2016 10:50:03 AM org.apache.http.impl.client.DefaultRequestDirector tryConnect
INFO: I/O exception (java.net.NoRouteToHostException) caught when connecting to the target host: No route to host
Feb 02, 2016 10:50:04 AM org.apache.http.impl.client.DefaultRequestDirector tryConnect
INFO: Retrying connect
would anyone here know what thats about ?
(for reference im using this boot template: https://github.com/martinklepsch/tenzing)Clojars in down
I followed the instructions to use the mirror, but my boot instance is still hanging with no feedback
@micha: boot
looks good, prints usage and such
@juhoteperi: thanks, that would explain it right ?
hello guys, i am working on a test task, and I was wondering if you could help me to specify options from the command line for this: https://github.com/arichiardi/boot/commit/32085dc71eceebe311fabd91f1a2732da2995f7a#diff-a4c54fc631a18b940822c4cc9a9251e1R871
works fine from build.boot
(runtests :cmds '#{[test/sift-with-meta-tests]
[test/sift-with-meta-invert-tests]})
boot runtests --cmds "[test/sift-with-meta-tests]" --cmds "[test/sift-with-meta-invert-tests]"
throws: java.lang.ClassCastException: java.lang.Character cannot be cast to java.lang.String
probably I am not calling it right
boot.user=> (deftask foo [x xx ARG #{code} "asdf"] (with-pass-thru [x] (prn :xx xx)))
#'boot.user/foo
boot.user=> (boot "foo" "-x" "[inc]")
:xx #{[#object[clojure.core$inc 0x701a358b "clojure.core$inc@701a358b"]]}
nil
boot.user=> (boot "foo" "-x" "[inc]" "-x" "[dec]")
:xx #{[#object[clojure.core$inc 0x701a358b "clojure.core$inc@701a358b"]] [#object[clojure.core$dec 0x20bdc1da "clojure.core$dec@20bdc1da"]]}
nil
boot.user=> (deftask foo [x xx ARG #{edn} "asdf"] (with-pass-thru [x] (prn :xx xx)))
Warning: deftask boot.user/foo was overridden
#'boot.user/foo
boot.user=> (boot "foo" "-x" "[inc]" "-x" "[dec]")
:xx #{[dec] [inc]}
nil
mmm...the arg in my case is #{[edn]}
but maybe it does not make too much sense...
it is a set of seq of commands
ok then 😄
will revert to strings
yes, true
I will need to add an assert in the code then, ok, thanks a lot @micha!
boot.user=> (deftask foo [x xx ARG:FOO #{[edn edn]} "asdf"] (with-pass-thru [x] (prn :xx xx)))
Warning: deftask boot.user/foo was overridden
#'boot.user/foo
boot.user=> (boot "foo" "-x" "inc" "-x" "dec")
:xx #{[dec nil] [inc nil]}
nil
yeah..the point was to have #{[task :opts "arg"] [task :asda :foo]}
so that you can test whatever
it works in build.boot
, I guess we can live with less flexibility in the cmd line
forms are nice in build.boot
, in any case everyting is converted to string passing to runboot
😄
I will try a couple of solutions...I still need to work on deftesttask
😄
these details will be defined later maybe during the review ok? thanks for confirming it did not work
Hello everybody, my PR for boot tests is ready for the battle (https://github.com/boot-clj/boot/pull/401):
- clone `arichiardi:sift-fix-test` (some people prefer remotes)
- make install
- cd boot/core
- boot test
The report I agree are messy as I copied clojure.test
without shame 😄 They can be improved especially if we want a report per task.I’m trying to debug a boot dev failure
where do dependencies end up with boot once downloaded?
I feel like I’m failing at google as far as finding more in-depth documentation on boot