Fork me on GitHub
#leiningen
<
2017-12-05
>
wdullaer07:12:30

@noisesmith thanks for info. I was hoping to avoid hosting them somewhere external, but I can make that work. much appreciated! 🙂

derpocious21:12:41

hey all, I'm on windows 7 on a network with self-signed certificates.

derpocious21:12:09

could not install leiningen for my life through the installer or with the shell.

derpocious21:12:15

I was able to download the jar though.

derpocious21:12:34

Now I can do java -jar lein.jar to start a REPL, but I'm not sure how to use the other commands.

derpocious21:12:16

For example, java -jar lein.jar new derp just returns this:

derpocious21:12:19

Exception in thread "main" java.io.FileNotFoundException: new (The system cannot
 find the file specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at clojure.lang.Compiler.loadFile(Compiler.java:7314)
        at clojure.main$load_script.invokeStatic(main.clj:275)
        at clojure.main$script_opt.invokeStatic(main.clj:335)
        at clojure.main$script_opt.invoke(main.clj:330)
        at clojure.main$main.invokeStatic(main.clj:421)
        at clojure.main$main.doInvoke(main.clj:384)
        at clojure.lang.RestFn.invoke(RestFn.java:421)
        at clojure.lang.Var.invoke(Var.java:383)
        at clojure.lang.AFn.applyToHelper(AFn.java:156)
        at clojure.lang.Var.applyTo(Var.java:700)
        at clojure.main.main(main.java:37)

manutter5121:12:04

hmm, try java -jar lein.jar -- new derp ?

manutter5121:12:32

I remember seeing that somewhere, but no idea if it will work here.

derpocious21:12:40

thanks, but still getting the error 😕

derpocious21:12:30

that's for passing arguments into the lein template

noisesmith21:12:10

the arg after the jar needs to be the class to execute right?

noisesmith21:12:43

oh, never mind, that stack trace shows something else is going on

alexmiller21:12:55

when you -jar, you don’t get to pick the class

noisesmith21:12:24

oh, lein.jar just sets clojure.main

[email protected]: ~/sprinklr$ java -jar ~/.lein/self-installs/leiningen-2.8.1-standalone.jar
Clojure 1.8.0
user=>

alexmiller21:12:29

what that looks like is that it’s running clojure.main

noisesmith21:12:34

that explains that error

noisesmith21:12:47

so give clojure.main the -m lein.core/-main or whatever

alexmiller21:12:56

you don’t need the -main

alexmiller21:12:02

you just give it the namespace

alexmiller21:12:39

can you tell I’ve spent too much quality time with clojure.main lately?

noisesmith21:12:03

the clj tool is awesome btw

noisesmith21:12:25

it’s definitely going to replace the goofy lein project bundling pomegranate with no source code that I was making uberjars from 😄

alexmiller21:12:43

new reference page: https://clojure.org/reference/deps_and_cli (guide being overhauled too)

noisesmith21:12:13

cool, thanks