@jaime.sangcap has joined the channel
Hi, I'm following the readme alias here https://github.com/seancorfield/clj-new
{:aliases
{:new {:extra-deps {seancorfield/clj-new
{:mvn/version "1.1.228"}}
:ns-default clj-new
:exec-args {:template "app"}}}
...}
But I'm getting error when executing clj -X:new create :name jaimesangcap/sample
Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).
-X:new (No such file or directory)
Full report at:
/var/folders/lw/_rg6ygr52m71s2v_y1lc5xr4gjb1wv/T/clojure-584313092484341518.edn
----- Content of /var/folders/lw/_rg6ygr52m71s2v_y1lc5xr4gjb1wv/T/clojure-584313092484341518.edn
{:clojure.main/message
"Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).\n-X:new (No such file or directory)\n",
:clojure.main/triage
{:clojure.error/class java.io.FileNotFoundException,
:clojure.error/line -2,
:clojure.error/cause "-X:new (No such file or directory)",
:clojure.error/symbol java.io.FileInputStream/open0,
:clojure.error/source "FileInputStream.java",
:clojure.error/phase :execution},
:clojure.main/trace
{:via
[{:type java.io.FileNotFoundException,
:message "-X:new (No such file or directory)",
:at [java.io.FileInputStream open0 "FileInputStream.java" -2]}],
:trace
[[java.io.FileInputStream open0 "FileInputStream.java" -2]
[java.io.FileInputStream open "FileInputStream.java" 195]
[java.io.FileInputStream <init> "FileInputStream.java" 138]
[java.io.FileInputStream <init> "FileInputStream.java" 93]
[clojure.lang.Compiler loadFile "Compiler.java" 7571]
[clojure.main$load_script invokeStatic "main.clj" 475]
[clojure.main$script_opt invokeStatic "main.clj" 535]
[clojure.main$script_opt invoke "main.clj" 530]
[clojure.main$main invokeStatic "main.clj" 664]
[clojure.main$main doInvoke "main.clj" 616]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.main main "main.java" 40]],
:cause "-X:new (No such file or directory)"}}
I'm using clojure 1.10.1, ~/.clojure/deps.edn is
{:aliases
{:new {:extra-deps {seancorfield/clj-new
{:mvn/version "1.1.228"}}
:ns-default clj-new
:exec-args {:template "app"}}}}
What am I missing here? Appreciate your help, thanks@jaime.sangcap Looks like your CLI version is too old. You need to be using at least 1.10.1.697 per the readme:
> Note: these instructions assume you are using the Clojure CLI version 1.10.1.697 or later!
You can find out what version you have installed via clojure -Sdescribe
The current stable version of the CLI is 1.10.1.727 per https://clojure.org/releases/tools
thanks a lot! I upgraded the version annd it works now