Fork me on GitHub
#boot
<
2016-12-18
>
cap10morgan00:12:18

I'm exploring packaging an official clojure docker image w/ boot instead of lein pre-installed. But I'm having trouble figuring out how to install a specific version of boot. I want to script the installation of boot 2.7.0 (apparently the latest release?). How would I go about doing that in such a way that it will still install 2.7.0 even when a newer version is released?

grounded_sage01:12:09

I'm a little stumped I keep getting unable to resolve symbol when I have required it. https://gist.github.com/CommonCreative/0ed06d8ddfd5dbde01d14b2e335678b6

grounded_sage01:12:20

The execption thrown

clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: defstyle in this context, compiling:(vbn/web.cljc:12:1)
             java.lang.RuntimeException: Unable to resolve symbol: defstyle in this context

grounded_sage03:12:13

Managed to get it working with just calling by the full namespace each time. Not sure why it's not working the way it should though

martinklepsch04:12:16

@grounded_sage you're just requiring the macro in cljs and that error seems to be a Clojure compiler exception

martinklepsch04:12:33

@cap10morgan since 2.4.2 or so the binary is merely a shim and all versions since that can be used by just setting BOOT_VERSION. You can set this either via env var, boot.properties or ~/.boot/boot.properties

johanatan05:12:08

hi, can anyone recommend a starting point for a new boot node.js/NPM module project?

pvinis12:12:48

hello guys. i wanna have boot repl require my main ns and start in it

pvinis12:12:51

how can i do that?

pvinis12:12:23

ok so i actually found out. its with :init-ns option for repl

pvinis12:12:36

but not i have a problem with reloading

pvinis12:12:54

i am trying to set up reloading in the repl but the instructions are not clear..

bhagany14:12:09

Googling has gotten me nowhere, so - I have some calls to boot.util/info inside a pod. From a command line repl, these are printed, but from a cider repl, they are not. I’m not sure if I should be looking for a knob to fiddle with in boot, or in cider, or if I’m just out of luck - does anyone have any tips on where to look?

martinklepsch14:12:07

@bhagany do you jack-in or connect to an existing repl server?

bhagany14:12:22

@martinklepsch I’m jacking in

martinklepsch14:12:15

@bhagany try connecting, I think cider may be doing weird things to stdout

bhagany14:12:28

@martinklepsch okay, one sec

bhagany14:12:30

@martinklepsch same result

martinklepsch14:12:47

no output even in terminal?

bhagany14:12:07

in the terminal, I get output, but connecting to the same repl process in cider results in no output

martinklepsch14:12:05

yeah so if you see the info logs then I'd say that's a sign for cider somehow swallowing the stdout of the repl server it starts

bhagany14:12:23

alright, I’ll take a look. thanks!

martinklepsch14:12:29

what happens when you println stuff in the repl?

bhagany14:12:24

same - from a normal task it works, but in a pod, it doesn’t. I’m actually dealing with perun here, btw. The missing output is from tasks like markdown that call info from a pod.

bhagany14:12:28

hahahahaha, I just noticed something -

bhagany14:12:44

just to be clear, I’m calling boot repl from the command line, and then M-x cider-connecting to it from emacs. Then I (boot (dev)) from cider. In this case, I get non-pod output in emacs, and pod output on the command line.

bhagany14:12:54

this makes me feel like boot isn’t directing output from pods to cider

martinklepsch14:12:38

I think I see what's going on

martinklepsch14:12:16

So pods are totally isolated: *out* in one pod is a different var than *out* in another pod. You cannot make dynamic bindings into pods.

martinklepsch14:12:58

I guess Cider rebinds *out* but that doesn't reach into the pods

bhagany14:12:10

that makes sense. sounds like an “out of luck” situation to me, then

martinklepsch14:12:53

@bhagany at least in the immediate moment, yeah 😕 you should open an issue though, maybe it's something that can be improved

bhagany14:12:26

alright, I’ll do that. do you think this is more tractable from boot, or from cider?

martinklepsch14:12:27

I don't have any ideas how it could be done right now but I'm sure someone will 🙂

martinklepsch14:12:18

@bhagany seems more related to/solvable from the boot side I'd say

bhagany14:12:30

okay. thanks again!

bhagany14:12:25

new discovery: when jacking in, pod output does end up in emacs, but it’s in the server buffer, not the repl buffer