This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-21
Channels
- # announcements (2)
- # asami (8)
- # aws (4)
- # beginners (32)
- # calva (12)
- # cider (72)
- # clj-kondo (16)
- # clojure (11)
- # clojure-germany (2)
- # clojure-italy (4)
- # clojure-serbia (2)
- # clojurescript (26)
- # data-oriented-programming (8)
- # datomic (9)
- # deps-new (17)
- # eastwood (4)
- # emacs (20)
- # fulcro (18)
- # funcool (1)
- # graalvm (8)
- # leiningen (12)
- # lsp (34)
- # malli (25)
- # meander (4)
- # membrane (4)
- # off-topic (153)
- # practicalli (1)
- # releases (2)
- # remote-jobs (3)
- # rewrite-clj (77)
- # ring (5)
- # shadow-cljs (108)
- # spacemacs (12)
- # tools-deps (9)
- # vscode (11)
- # xtdb (4)
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 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?
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