Fork me on GitHub
#boot
<
2017-03-07
>
flyboarder01:03:12

anyone know where the boot-in-boot project is? I cant seem to find it.

flyboarder01:03:02

yeah like the parallel boot stuff

flyboarder01:03:20

multi-module! thats what I should have searched for

flyboarder02:03:49

@micha so I found a problem with boot's output, if I run a boot task and capture it's output it's being printed to error stream

micha02:03:30

you mean if you do println in a task it goes to stderr?

flyboarder02:03:55

no util/info -> stderr

micha02:03:39

that's so you can make a task that generates output

micha02:03:57

logging i think should go to stderr

flyboarder02:03:40

that makes sense I guess

micha02:03:28

you can do ... 2>&1 if you want to combine them

flyboarder02:03:27

right but then should the application exit with a 0 still?

flyboarder02:03:17

if it is printing logging information? I guess so since its not a warning either.

micha02:03:30

yeah i don't think the exit status is really related to logging in any way

flyboarder02:03:15

yeah fair enough just need something more complex than (= 0 exitcode) (util/fail errmsg) since errmsg contains my logging information

micha02:03:51

the exit code indicates to the parent process whether the child exited normally or not

flyboarder02:03:48

ok so only fail if the exit is non-zero but I should probably still print the errmsg anyway if there is a value

micha02:03:51

boot will exit with non zero exit status when there is an unhandled exception

micha02:03:50

usually the parent will not capture stderr

micha02:03:29

so stderr will pass through

micha02:03:12

delivered to the controlling terminal or system console etc

flyboarder02:03:44

hmm, so it's probably because my process exec lib is capturing the stream that it's not returned up to the console

flyboarder02:03:58

i think this should cover boot+most exe's

gas06:03:34

anyone know status of uberjar and boot - tryed https://lionfacelemonface.wordpress.com/2015/01/17/boot-getting-started-with-clojure-in-10-minutes/ and cant get a uberjar to work with my main fucntion being defclifn. then used alans latests https://github.com/adzerk-oss/boot-uberjar-example/ and redirection but still get "Exception in thread "main" java.lang.NoClassDefFoundError: boot/App, compiling:(gas/uccx.clj:1:1)” error. any pointers

laforge4916:03:24

WSL is a new (still beta) feature of windows that allows you to run ubuntu on windows without a VM, i.e. sharing the same file system as windows. Tested boot and found it does not yet work as there is still a hole in the file watch API. Hopefully this will be fixed in the next major update of windows (creators update) which is expected next month.

phreed17:03:00

@micha Regarding colorized-pretty-print from the repl. Here is the description for leiningen https://github.com/greglook/whidbey/blob/master/HISTORY.md It sounds like a modified version of REPL-y is needed. This option to REPL-y seems to have been implemented https://github.com/trptcolin/reply/commit/338f00e28e0a6a2f0693f01c853d3db25ebe9e71

micha17:03:56

@phreed does it work if you add that version of reply to your dependencies?

micha17:03:35

if you specify a version of reply in your dependencies boot will use it

micha17:03:45

i believe boot already uses it

micha18:03:20

i experimented with the option i think, didn't find a way to get it to work correctly

kommen19:03:06

@micha re my boot-cljs-test issue from yesterday: https://github.com/crisptrutski/boot-cljs-test/issues/55 just in case you’re interested

micha19:03:25

^^ interesting!

michal23:03:36

hey, quick question regarding boot-figreload plugin. i'd like to keep my *.js files inside scripts/ directory. i created a scripts dir with main.cljs.edn as following:

{:require [dashboard.main]
 :init-fns [dashboard.main/init]
 :boot-reload {:on-jsload dashboard.main/on-js-reload}
 :compiler-options {:asset-path "/scripts/main.out"}}

michal23:03:05

but figreload throws an error during compilation:

No such namespace: figwheel.connect.scripts/main, could not locate figwheel/connect/scripts_SLASH_main.cljs, figwheel/connect/scripts_SLASH_main.cljc, or Closure namespace "main" in file boot/cljs/main31906.cljs

michal23:03:21

any clue what happens here? it works perfectly having main.cljs.edn at the top dir.

qqq23:03:05

is there a boot task which will get me all of src/.clj and src/.cljs as ASTs ?

richiardiandrea23:03:09

@qqq you mean using the analyzer?

chancerussell23:03:26

Anyone know of any issues involving add-resource and symlinks?

chancerussell23:03:32

I’ve got some code that creates a temp directory, and calls a shell function that dumps an app bundle (full of symlinks) into the tmp dir

chancerussell23:03:52

And then I’m trying to add the temp dir to the fileset with add-resource, and commit it

chancerussell23:03:12

When add-resource is called, it dies with a FileNotFoundException on one of the symlinked directories

chancerussell23:03:34

and the exception has the (Is a directory) message

chancerussell23:03:37

it looks like it’s dying on the call to get the md5 for the file

chancerussell23:03:43

And that ends up trying to open a FileInputStream, and that’s when it dies

chancerussell23:03:00

this is on boot version 2.6.0