This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-23
Channels
- # aws (3)
- # babashka (17)
- # beginners (44)
- # boot (1)
- # bristol-clojurians (1)
- # cider (19)
- # clj-kondo (7)
- # cljfx (5)
- # clojure (35)
- # clojure-australia (25)
- # clojure-europe (41)
- # clojure-nl (4)
- # clojure-spec (5)
- # clojure-uk (104)
- # clojuredesign-podcast (1)
- # clojurescript (41)
- # component (6)
- # conjure (5)
- # core-async (20)
- # core-logic (5)
- # cryogen (7)
- # cursive (4)
- # data-science (1)
- # datomic (14)
- # devcards (2)
- # events (1)
- # fulcro (6)
- # helix (6)
- # jobs (4)
- # kaocha (4)
- # lambdaisland (4)
- # leiningen (3)
- # luminus (1)
- # malli (2)
- # meander (2)
- # mount (6)
- # off-topic (2)
- # pedestal (25)
- # rdf (1)
- # re-frame (17)
- # reagent (5)
- # releases (1)
- # reveal (13)
- # rewrite-clj (45)
- # shadow-cljs (27)
- # sql (18)
- # tools-deps (93)
- # vim (13)
- # xtdb (11)
Hi, I'm trying to get up and running with Cursive behind a corporate proxy. I have leiningen, clojure, jdk all installed and can happily run my project from the commandine. However, when I try to load the project in intellij, cursive tries to download a standalone binary for Leiningen, which is forbidden by the proxy. Is there a way to get cursive to recognise the lein binary of the same version that I have installed? I'm on Linux, javac 11.0.3 from openjdk, lein 1.9.2, intellij 2019.3 and cursive 1.9.1-2019.3 if that makes any difference. Thanks!
Cursive will download the leiningen uberjar to ~/.lein/self-installs, which is where lein itself will download it to. Check which versions you have there, if you have a specific version in that folder then you can tell Cursive to use that version at Preferences | Build, Execution, Deployment | Build Tools | Leiningen
I don't have anything in .lein/self-installs, but I have what seems to be a lein binary at /usr/local/bin/lein. I didn't do the setup, but I can only assume this is from an operating system package rather than curling some script to install lein. Is there a way to get cursive to look on $PATH for lein, or to use this specific location for the binary?
Lein is two parts - it’s an uberjar containing the actual lein code, and a script which handles downloading the uberjar and running it. That’s what /usr/local/bin/lein is. In the script, there’s probably a line like:
LEIN_JAR="$LEIN_HOME/self-installs/leiningen-$LEIN_VERSION-standalone.jar"
Do you have LEIN_HOME set to something other than ~/.lein?