This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-09
Channels
- # adventofcode (1)
- # aleph (2)
- # beginners (28)
- # boot (26)
- # boot-dev (8)
- # cider (10)
- # clara (10)
- # cljs-dev (130)
- # cljs-experience (1)
- # cljsrn (12)
- # clojure (118)
- # clojure-austin (40)
- # clojure-boston (1)
- # clojure-chicago (1)
- # clojure-dusseldorf (1)
- # clojure-estonia (11)
- # clojure-france (1)
- # clojure-greece (3)
- # clojure-italy (19)
- # clojure-nl (1)
- # clojure-russia (1)
- # clojure-spec (19)
- # clojure-uk (34)
- # clojurescript (62)
- # core-logic (7)
- # cursive (11)
- # datomic (35)
- # emacs (15)
- # fulcro (264)
- # jobs (4)
- # leiningen (5)
- # midje (4)
- # off-topic (74)
- # onyx (27)
- # planck (14)
- # protorepl (4)
- # re-frame (37)
- # reagent (62)
- # rum (2)
- # shadow-cljs (171)
- # slack-help (5)
- # spacemacs (6)
- # specter (9)
I have. What’s your question @minikomi?
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@yvendruscolo You probably have very old ring, with bad ns
form: https://github.com/ring-clojure/ring/commit/a05e026d85611cb179a1352d569d7c68713f792c
The namespace is mentioned on the last line of output
Hm, yes
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
> Classpath conflict: ring/ring-core version 1.2.2 already loaded
well, that's it
Do you load some deps on ~/.boot/profile.boot
?
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"]])
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