This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-25
Channels
- # announcements (6)
- # babashka (53)
- # beginners (199)
- # calva (101)
- # cider (8)
- # clara (17)
- # cljs-dev (1)
- # clojure (86)
- # clojure-australia (1)
- # clojure-dev (33)
- # clojure-europe (29)
- # clojure-france (13)
- # clojure-nl (6)
- # clojure-norway (7)
- # clojure-poland (3)
- # clojure-spec (2)
- # clojure-uk (9)
- # clojurescript (18)
- # community-development (2)
- # cursive (2)
- # datomic (8)
- # duct (43)
- # emacs (9)
- # events (6)
- # figwheel-main (1)
- # fulcro (7)
- # integrant (1)
- # jobs (1)
- # jobs-rus (1)
- # lambdaisland (1)
- # malli (19)
- # nrepl (2)
- # off-topic (31)
- # pathom (35)
- # quil (1)
- # reagent (4)
- # remote-jobs (7)
- # schema (1)
- # shadow-cljs (58)
- # spacemacs (6)
- # startup-in-a-month (12)
- # tools-deps (10)
- # xtdb (40)
Is the WARNING: When invoking clojure.main, use -M
warning supposed to be printed even when executing just clj -e 1
?
yes, and yes
-M (now) means "run clojure.main" so should be used with -m or -e or calling a script.clj etc
Ah, I see. I thought it was only for aliases but now I can see that the list of aliases is optional. And I didn't realize that clojure.main
is called even when I specify -m
. Thanks!
Hello this is super basic question. I create simple command line program which i would like to execute. I used https://www.clojure.org/guides/deps_and_cli#_writing_a_program as a reference but i have a problem. i have `deps.edn` , `src/data.clj` that has fn `foo`, and when i do `clj -X data/foo` i get this error
Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).
-X (No such file or directory)
Full report at:...
what am i doing wrong?@lepistane Probably a too old version of clj
@lepistane I've found it helpful to use brew
to manage my Clojure CLI install even on Linux, so that I can choose to install a specific version and also make it easy to keep the CLI up-to-date.