Fork me on GitHub
#tools-deps
<
2021-01-25
>
p-himik00:01:45

Is the WARNING: When invoking clojure.main, use -M warning supposed to be printed even when executing just clj -e 1?

p-himik00:01:25

Or when I'm running my own -main, like in clj -m my.proj.

Alex Miller (Clojure team)01:01:13

-M (now) means "run clojure.main" so should be used with -m or -e or calling a script.clj etc

p-himik01:01:06

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!

lepistane09:01:42

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?

borkdude09:01:21

@lepistane Probably a too old version of clj

lepistane09:01:04

another basic question :S how do i remove clojure cli from my machine?

lepistane12:01:30

this worked! i just repeated installation steps thanks!!

seancorfield18:01:48

@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.

👍 3