Fork me on GitHub
#braveandtrue
<
2020-05-18
>
John MacIsaac17:05:36

From chapter 5's pegthing.core https://www.braveclojure.com/functional-programming/ https://github.com/flyingmachine/pegthing/blob/c5d62f44a229964a0fa25b1fec0ceab2651fb436/src/pegthing/core.clj When I run this code in intellij-Cursive’s repl, I get the following error message: Syntax error macroexpanding clojure.core/ns at (core.clj:1:1). ((require [clojure.set :as set]) (:gen-class)) - failed: Extra input spec: :clojure.core.specs.alpha/ns-form Anyone know how to fix this?

manutter5117:05:00

Inside the ns declaration, you need :require (with the colon) and not just require

John MacIsaac18:05:27

Thank you! @manutter51 That solved it.

👍 4