Fork me on GitHub
#boot
<
2018-01-12
>
kenny01:01:17

Is there a way to add your :resource-paths to a pod?

kenny01:01:29

Ah, it seems :directories key does it instead of :resource-paths.

cfleming08:01:34

@kenny Actually I suspect that your file has been loaded correctly, but Cursive doesn’t print the “done” if there’s any output on stderr during the load, assuming that it’s some kind of error message about what went wrong. If it’s harmless then the ns should have loaded correctly.

djebbz10:01:00

Hello, when I'm adding a local dependency as a :checkouts dep my boot task fails to run, it crashes with Provided artifact is missing a version: [nil]. I nailed down the problem a little bit : the boot task I use add some files from the jar of this dependency into the fileset with (sift :add-jar {'my/dependency #"my-regex"}). It seems incompatible somehow with checkouts feature, or it's a bug.

djebbz10:01:14

We need some of the files inside the jar to be in the ":resource-paths" for this boot task (and a few others), maybe there's a better than someone here knows of.

djebbz10:01:57

In case you didn't understand, I'm asking for help here 😅

djebbz10:01:20

> boot -V
#
#Fri Jan 12 11:40:07 CET 2018
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.9.0-alpha15
BOOT_VERSION=2.7.1

djebbz11:01:38

After talking with some people, we realized that we should instead copy manually the files from the dependency manually, since a jar is not supposed to change and not rely on checkouts + watch + shift

djebbz11:01:24

we need to copy files from the dependency into some target directory of our project (handlebars templates and some .edn files)

petrus11:01:46

How do I debug an error like this, where boot knows exactly what went wrong where, but I have no idea where I'm mentioning a namespace "d" that doesn't exist. Line 14 doesn't tell me where to look:

boot repl 
   Boot.main                    Boot.java:  258
                                                        ...                                               
                                 boot.main/-main                     main.clj:  216
                              boot.main/-main/fn                     main.clj:  216
                                clojure.core/load-string                     core.clj: 4055
                                 clojure.core/load-reader                     core.clj: 4053
                                                        ...                                   
            
                                                        ...                                   
                                   clojure.core/require                     core.clj: 5947 (repeats 2 times)
                                         clojure.core/apply                     core.clj:  659
                                                        ...                                   
                                 clojure.core/load-libs                     core.clj: 5909

                          my-project.core.server/eval14709                   server.clj:    1
               my-project.core.server/eval14709/loading--auto--                   server.clj:    1
                                                        ...                                   
            
                         my-project.core.handler/eval17829                  handler.clj:    1
              my-projectand.core.handler/eval17829/loading--auto--                  handler.clj:    1
                                                        ...                                   
                                    clojure.core/require                     core.clj: 5947 (repeats 2 times)
                                      clojure.core/apply                     core.clj:  659
                                                        ...                                   
java.lang.RuntimeException: No such namespace: d
clojure.lang.ExceptionInfo: No such namespace: d
    line: 14

djebbz11:01:00

this is what the sift :add-jar ... is doing in our boot task, but it's not supposed to do it continually

djebbz11:01:10

I think I'm a bit lost as to how to solve the problem

alandipert16:01:10

boot generates a clj file based on the content of your ~/.boot/profile and the build.boot file, this is usually where errors like this hide

alandipert16:01:34

to see the generated files with line numbers you can do this: boot -b | cat -n

alandipert16:01:40

*generated file

alandipert16:01:22

the other place i would look is, are you using an http task, or any other task that takes a namespace as an argument? the task might be loading clj code, and i'd look at line 14 of whatever that namespace is

alandipert16:01:52

or maybe the task takes a ns-qualified symbol and is loading the namespace for you... place to look is that namespace

theeternalpulse16:01:43

are there known problems with nrepl after changing the boot_clojure_version to 1.9.0 instead of alpha. I'm getting conflicting clojure versions when I try to boot up the repl

theeternalpulse16:01:14

my boot.properties

#
#Thu Jan 11 23:42:28 PST 2018
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.9.0
BOOT_VERSION=2.7.2

theeternalpulse16:01:52

when started from the terminal I get error in process sentinel: Could not start nREPL server: Classpath conflict: org.clojure/clojure version 1.9.0 already loaded, NOT loading version 1.7.0, but from cider error in process sentinel: Could not start nREPL server: Classpath conflict: org.clojure/clojure version 1.9.0 already loaded, NOT loading version 1.2.0

martinklepsch18:01:00

@theeternalpulse try also specifying your clojure version in :dependencies in build.boot

theeternalpulse20:01:14

ok, I was using the base boot config for my build.boot, didn't add clojure itself. Let me try that when I get home, thanks @martinklepsch