Fork me on GitHub
#boot
<
2018-01-09
>
minikomi05:01:27

Getting an error i'm not sure how to navigate..

minikomi05:01:30

Provided artifact is missing a version: [ragtime/ragtime nil]

minikomi05:01:02

ah, turns out it might be a boot-ragtime error

minikomi06:01:07

Anyone using environ with boot?

bostonaholic16:01:44

I have. What’s your question @minikomi?

yorggen20:01:02

Hello, i am having some trouble with boot 2.8.0-snapshot and clojure 1.9 my very same project works fine on clojure 1.8 and boot 2.7.2, but if i try to use these newer versions, i get this:

clojure.lang.ExceptionInfo: Call to clojure.core/ns did not conform to spec:
In: [2] val: ((require [clojure.string :as str])) fails spec: :clojure.core.specs.alpha/ns-form at: [:args] predicate: (cat :attr-map (? map?) :clauses :clojure.core.specs.alpha/ns-clauses), Extra input
                            
clojure.spec.alpha/args: (ring.util.mime-type
"Utility functions for finding out the mime-type of a file."
(require [clojure.string :as str]))
clojure.spec.alpha/problems: [{:path [:args],
:reason "Extra input",
:pred
(clojure.spec.alpha/cat
:attr-map
(clojure.spec.alpha/? clojure.core/map?)
:clauses
:clojure.core.specs.alpha/ns-clauses),
:val ((require [clojure.string :as str])),
:via [:clojure.core.specs.alpha/ns-form],
:in [2]}]
clojure.spec.alpha/spec: #object[clojure.spec.alpha$regex_spec_impl$reify__2436 0x35c3bf1c "clojure.spec.alpha$regex_spec_impl$reify__2436@35c3bf1c"]
clojure.spec.alpha/value: (ring.util.mime-type
"Utility functions for finding out the mime-type of a file."
(require [clojure.string :as str]))
clojure.lang.ExceptionInfo: Call to clojure.core/ns did not conform to spec:
In: [2] val: ((require [clojure.string :as str])) fails spec: :clojure.core.specs.alpha/ns-form at: [:args] predicate: (cat :attr-map (? map?) :clauses :clojure.core.specs.alpha/ns-clauses), Extra input
                            
clojure.spec.alpha/args: (ring.util.mime-type
"Utility functions for finding out the mime-type of a file."
(require [clojure.string :as str]))
clojure.spec.alpha/problems: [{:path [:args],
:reason "Extra input",
:pred
(clojure.spec.alpha/cat
:attr-map
(clojure.spec.alpha/? clojure.core/map?)
:clauses
:clojure.core.specs.alpha/ns-clauses),
:val ((require [clojure.string :as str])),
:via [:clojure.core.specs.alpha/ns-form],
:in [2]}]
clojure.spec.alpha/spec: #object[clojure.spec.alpha$regex_spec_impl$reify__2436 0x35c3bf1c "clojure.spec.alpha$regex_spec_impl$reify__2436@35c3bf1c"]
clojure.spec.alpha/value: (ring.util.mime-type
"Utility functions for finding out the mime-type of a file."
(require [clojure.string :as str]))
i couldnt quite make any sense of it up to now, since my ns form follows the standard patterns, i dont even require clojure.string as str, so im kind of lost

juhoteperi20:01:42

The namespace is mentioned on the last line of output

yorggen20:01:02

in my build.boot i am using [ring/ring “1.6.3”], isnt that the latest one?

yorggen20:01:40

i also get lots of classpath conflicts:

Classpath conflict: clj-time version 0.4.4 already loaded, ALSO loading version 0.11.0
Classpath conflict: commons-fileupload version 1.3 already loaded, ALSO loading version 1.3.3
Classpath conflict: com.fasterxml.jackson.core/jackson-core version 2.3.1 already loaded, ALSO loading version 2.9.0
Classpath conflict: cheshire version 5.3.1 already loaded, ALSO loading version 5.8.0
Classpath conflict: commons-codec version 1.6 already loaded, ALSO loading version 1.10
Classpath conflict: ring/ring-codec version 1.0.0 already loaded, ALSO loading version 1.0.1
Classpath conflict: org.clojure/tools.reader version 0.8.1 already loaded, ALSO loading version1.0.0
Classpath conflict: joda-time version 2.1 already loaded, ALSO loading version 2.8.2
Classpath conflict: commons-io version 2.4 already loaded, ALSO loading version 2.5
Classpath conflict: ring/ring-core version 1.2.2 already loaded, ALSO loading version 1.6.3
Classpath conflict: com.fasterxml.jackson.dataformat/jackson-dataformat-smile version 2.3.1 already loaded, ALSO loading version 2.9.0

juhoteperi20:01:10

> Classpath conflict: ring/ring-core version 1.2.2 already loaded

juhoteperi20:01:14

well, that's it

yorggen20:01:30

why would it be loading?

juhoteperi20:01:28

Do you load some deps on ~/.boot/profile.boot?

juhoteperi20:01:20

Best not to directly load deps there, if you want to have some libs always available, you can use boot.repl/*default-dependencies*: (swap! boot.repl/*default-dependencies* into '[[cider/cider-nrepl "0.15.1"]])

yorggen20:01:49

its working now

yorggen20:01:01

i only had gorilla repl there

juhoteperi20:01:54

If you call set-env! it will load the deps the first thing when starting Boot, so those will have precedence over project deps, but *default-depenencies* should be loaded after project deps so you get the correct versions always

yorggen20:01:19

i havent been using gorilla repl in a while

yorggen20:01:29

i had no classpath conflicts now