Fork me on GitHub
#leiningen
<
2018-03-27
>
spinningarrow06:03:40

Is there a way to figure out the port of an already-running lein repl? It prints it when it starts up, but let's say I've erased my terminal buffer

benzap07:03:51

Hmm, i'm not sure. I know that you can specify a port to start on like so: lein repl :start :port <port> ex. lein repl :start :port 9000

benzap08:03:15

I would assume the repl server stores a global config var somewhere which might contain the port that it's currently running on

jumar08:03:32

@spinningarrow there's usually .nrepl-port file in the current directory

spinningarrow08:03:08

@jumar doesn't look like it's there. I'm using lein 2.7.1

spinningarrow08:03:30

Yup I was wondering if something like that exists

jumar09:03:44

not sure what might be the problem. I'm using 2.8.1. Beware that it's a hidden file.

spinningarrow09:03:31

Yes I checked for hidden files. It's definitely not there. I'm starting lein repl in a directory that doesn't have a project.clj - not sure if that matters

spinningarrow09:03:43

There seems to be a ~/.lein/repl-port file though…

jumar09:03:42

Yeah, that's the difference 🙂. I pretty much always starts lein repl inside a leiningen project.

jumar09:03:15

anyway, as you've probably found out, ~/.lein/repl-port should contain a proper port number

spinningarrow09:03:39

Yup looks like it has the port of the last REPL started, which seems to be good enough

conan13:03:28

Does anybody have a good solution for setting up projects that have both clojure and clojurescript in them? Every time I do it I hit java's maximum classpath limit, and in cursive that means everything hangs when you start a repl 😞

Alex Miller (Clojure team)20:03:27

I’m trying to deploy to a private s3 maven repo with s3-wagon-private. Is it possible to do this without signing the artifacts?

mikerod20:03:00

@alexmiller I’m assuming you had an issue with setting :sign-releases false ?

Alex Miller (Clojure team)20:03:02

didn’t manage to find that, thanks!

mikerod20:03:29

No problem