This happens both in test files doing (ns ...ns-name... (:use midje.sweet)) (and then lein midje) and in the repl doing (use 'midje.repl'), even in a newly generated project from lein new midje ...project-name.... When I try either, I get the following error printed:
Syntax error (IllegalArgumentException) compiling deftype* at (ordered/set.clj:12:1).
Must hint overloaded method: toArray
I couldn't find ordered/set.clj anywhere, and the only ordered/set.clj I know doesn't use deftype*. I'm still new to Clojure so I'm not sure if maybe I'm doing something stupid, I'm using clojure 1.11.0 (but trying 1.10.3 didn't make a discernible difference). Currently I can't run Midje. Any insight?
logs
CIDER log:
;; Connected to nREPL server - nrepl://localhost:37925
;; CIDER 1.13.0-snapshot (package: 1.13.0-snapshot), nREPL 1.0.0
;; Clojure 1.11.1, Java 11.0.22
;; Docs: (doc function-name)
;; (find-doc part-of-name)
;; Source: (source function-name)
;; Javadoc: (javadoc java-object-or-class)
;; Exit: <C-c C-q>
;; Results: Stored in vars *1, *2, *3, an exception in *e;
;; ======================================================================
;; If you’re new to CIDER it is highly recommended to go through its
;; user manual first. Type <M-x cider-view-manual> to view it.
;; In case you’re seeing any warnings you should consult the manual’s
;; "Troubleshooting" section.
;;
;; Here are a few tips to get you started:
;;
;; * Press <C-h m> to see a list of the keybindings available (this
;; will work in every Emacs buffer)
;; * Press <,> to quickly invoke some REPL command
;; * Press <C-c C-z> to switch between the REPL and a Clojure file
;; * Press <M-.> to jump to the source of something (e.g. a var, a
;; Java method)
;; * Press <C-c C-d C-d> to view the documentation for something (e.g.
;; a var, a Java method)
;; * Print CIDER’s refcard and keep it close to your keyboard.
;;
;; CIDER is super customizable - try <M-x customize-group cider> to
;; get a feel for this. If you’re thirsty for knowledge you should try
;; <M-x cider-drink-a-sip>.
;;
;; If you think you’ve encountered a bug (or have some suggestions for
;; improvements) use <M-x cider-report-bug> to report it.
;;
;; Above all else - don’t panic! In case of an emergency - procure
;; some (hard) cider and enjoy it responsibly!
;;
;; You can remove this message with the <M-x cider-repl-clear-help-banner> command.
;; You can disable it from appearing on start by setting
;; ‘cider-repl-display-help-banner’ to nil.
;; ======================================================================
;; Startup: /usr/bin/lein update-in :dependencies conj \[nrepl/nrepl\ \"1.0.0\"\] -- update-in :dependencies conj \[refactor-nrepl/refactor-nrepl\ \"3.9.1\"\] -- update-in :plugins conj \[refactor-nrepl/refactor-nrepl\ \"3.9.1\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.44.0\"\] -- repl :headless :host localhost
user> (use 'midje.repl)
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.clojure.core, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.repl, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.config, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.emission.levels, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.util.pile, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.emission.api, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.emission.plugins.util, being replaced by: #'midje.clojure.core/any?
WARNING: cat already refers to: #'clojure.core/cat in namespace: net.cgrand.parsley.fold, being replaced by: #'net.cgrand.parsley.fold/cat
Syntax error (IllegalArgumentException) compiling deftype* at (ordered/set.clj:12:1).
Must hint overloaded method: toArray
Running lein midje:
lein midje
WARNING: any? already refers to: #'clojure.core/any? in namespace: leiningen.midje, being replaced by: #'leiningen.midje/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.clojure.core, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.config, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.emission.levels, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.util.pile, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.repl, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.emission.api, being replaced by: #'midje.clojure.core/any?
WARNING: any? already refers to: #'clojure.core/any? in namespace: midje.emission.plugins.util, being replaced by: #'midje.clojure.core/any?
WARNING: cat already refers to: #'clojure.core/cat in namespace: net.cgrand.parsley.fold, being replaced by: #'net.cgrand.parsley.fold/cat
Syntax error (IllegalArgumentException) compiling deftype* at (ordered/set.clj:12:1).
Must hint overloaded method: toArray
Full report at:
/tmp/clojure-13128338281462840880.edn
Subprocess failed
Compilation exited abnormally with code 1 at Fri Mar 1 19:48:21
abstract
This happens both in test files doing
(ns ...ns-name... (:use midje.sweet))
(and thenlein midje
) and in therepl
doing(use 'midje.repl')
, even in a newly generated project fromlein new midje ...project-name...
. When I try either, I get the following error printed:I couldn't find
ordered/set.clj
anywhere, and the onlyordered/set.clj
I know doesn't usedeftype*
. I'm still new to Clojure so I'm not sure if maybe I'm doing something stupid, I'm using clojure1.11.0
(but trying1.10.3
didn't make a discernible difference). Currently I can't run Midje. Any insight?logs
CIDER log:
Running
lein midje
:The full report: