@aya has joined the channel
Hello guys, I'm fairly new to clojure. I'm following this tutorial https://www.youtube.com/watch?v=gIoadGfm5T8&feature=youtu.be by Sean for Repl Driven design and when I run the code to create a new project I get an error
clojure -X:new :template app :name aya/toppers
No function found on command line or in :exec-fn
I installed Lein and Clojure-CLII can't seem to find any well documented tutorials on how to fix this on the net
I tried adding Aliasses as it is said here https://github.com/seancorfield/clj-new but whenever add that piece of code I get the error
Error building classpath. Error reading edn. Map literal must contain an even number of forms (/home/aya/.clojure/deps.edn)
Here is what my deps.edn looks like@aya your deps.edn file has some illegal syntax: line 38, remove the three dots.
A lot of programming documentation uses ellipsis (three dots) just to mean "more stuff goes here".
But I will change that in the README so it can't be misconstrued.
Hi @seancorfield I get the same error after removing the three dots
Then you still have a syntax error in your deps.edn file. Can you share the updated version?
Here's my updated deps.edn file I installed the ClojureCLI by following the steps here
https://practicalli.github.io/clojure/clojure-tools/install/clojure.html
I'm coming from a Javascript background so I'm wondering if clj-new is a global dependency I should be installing somewhere
No, there’s not really a concept of “installing” things with Clojure (or Java). You just have dependencies.
OK, the syntax error is due to having that extra set of { .. } around :aliases.
The syntax for deps.edn is that :aliases is a top-level key.
I’ve removed all the comments to make it easier to read — this should be your entire deps.edn file contents:
{:aliases
{:new {:extra-deps {com.github.seancorfield/clj-new {:mvn/version "1.1.264"}}
:exec-fn clj-new/create
:exec-args {:template "app"}}}}I’ve updated the README so it hopefully clearer now @aya https://github.com/seancorfield/clj-new#getting-started