Fork me on GitHub
#boot
<
2018-01-26
>
kanwei01:01:21

@seancorfield Putting the :eval stuff in doublequotes as strings didn't do anything, it's just probably eval'ing to the string itself. When I use

:eval '(require 'mount.core) :eval '(mount.core/start)
it's still giving me java.lang.ClassNotFoundException: mount.core

seancorfield03:01:16

I've only done it from the command line -- never tried invoking the task inside another task,

seancorfield03:01:00

Did you try boot dev call -e "(require 'mount.core)" -e "(mount.core/start)" (which was what I was actually suggesting)? I guess it'll depend on what your dev task does...

zalky03:01:11

Does anyone know how to programmatically get the value of :asset-path that was set in a main.cljs.edn file? Other than directly reading and parsing the file. For example, if boot-cljs has already parsed it, is that easily available somewhere?

kanwei05:01:43

@seancorfield yup, I tried it on the command line as well.

boot dev call -e "(require 'mount.core)" -e "(mount.core/start)" -e "(println 1234)"
actually does print 1234 in the console, so the lines are probably getting executed. However, the things that supposed to be mounted aren't starting unless I connect to the nrepl and start it there. Unfortunate..

seancorfield06:01:32

@kanwei Yeah, sorry, it's really going to depend what your dev task is doing... I think there's a way to specify code to execute when an nREPL server starts up...? But I haven't used nREPL for ages (I use ProtoREPL in Atom, and we use a plain Socket Server REPL in some of our apps).

ashnur11:01:20

how to update clojure on windows with boot?

ashnur12:01:48

i have this feeling that everything would be so easy, but i can't really put one and one together ๐Ÿ˜ž

moxaj12:01:09

@ashnur you can bump BOOT_CLOJURE_VERSION in boot.properties - does that answer your question?

ashnur13:01:19

most probably. I will check asap

ashnur13:01:45

@moxaj that worked, thanks, although it's still confusing a bit because i haven't had any such config in the project, nor have i set any env variable related to boot or clojure

ashnur13:01:53

next thing i tried to find out and failed so far was how to have a dev task that just builds a .jar or something standalone. without clojurescript or any fancy stuff, just something i could run from cli for example

seancorfield18:01:46

@ashnur If you run boot -d boot/new new -n example -t app in a new folder, itโ€™ll generate a build.boot file you can use as an example โ€” with a build task to create an uberjar and a run task to run your application as source code.

ashnur23:01:02

@seancorfield i am a bit confused, i probably misunderstand what you wrote but neither of those options seems like a "dev task"?

ashnur23:01:24

i will check on that run task

ashnur23:01:40

is that something people use with the repl?