Fork me on GitHub
#cursive
<
2016-09-27
>
cfleming00:09:06

@spieden I’m not sure if IntelliJ will see those env vars or not, I’ll try to test that. If not I’ll need to allow them to be set in the UI, but then that involves letting some be password fields etc.

cfleming00:09:38

I might need to add a specific repo auth UI for that case, I’d like it to be more general but that might be tricky.

cfleming00:09:47

@spieden @bfabry I don’t think that will work, sadly. Do the poms for these jars have the doc URL in the pom anywhere?

cfleming00:09:15

I just checked, looks like no.

cfleming00:09:44

The reason that Cursive doesn’t allow sources and javadoc to be downloaded automatically is that most Clojure deps don’t have it. There’s no good way to tell which deps are Clojure, and so Cursive will try to go out to all your repositories on every sync for all your libs which don’t have sources in your local Maven repo. That will be most of them, obviously.

cfleming00:09:05

The only solution I can think of for this would be to use some metadata in the project.clj which doesn’t interfere with other tools, something like :dependencies [^:with-sources [com.google.cloud/puffy-white-clouds “1.2.3”]]

cfleming00:09:47

Then I would only sync the source (or javadoc) artifacts for those deps which explicitly ask for it.

cfleming00:09:45

@liamd No built in cljs debugging yet, sorry

cfleming00:09:00

cljs-devtools and dirac seem to be the best options now.

bfabry03:09:42

@cfleming I was actually talking about a java lib, so the download sources button works 🙂

Pablo Fernandez05:09:40

@cfleming these shortcuts seem to be working nicely so far, although they might be a bit controversial: https://www.cheatography.com/pupeno/cheat-sheets/cursive-on-windows/

vikeri08:09:39

Hmm strange. All of a sudden I don’t have the REPL option under Tools and my default key binding does not work anymore. Did anyone else run into this?

vikeri08:09:42

On 2016.2.4 and 1.4.0-eap2-2016.2

vikeri08:09:10

I am on macOS Sierra I should add

horia13:09:07

any ideas ?

misha13:09:14

@horia repl settings?

horia13:09:47

@misha I ticked 'use clojure.main in normal JVM process' and now it seems to start fine. thank you for your time.

cfleming17:09:36

@horia That option will not affect the editor you end up with. I’ve never seen that before, I suspect that just restarting the REPL night have worked.

cfleming17:09:29

@vikeri That option is only present when you have a REPL running - if you start one up, that menu item will reappear.

vikeri17:09:42

Alright, funny, I've used it heaps but I never noticed that. Must have only been looking when I had a REPL going already

cfleming17:09:14

@bfabry Right. But let me know if it would be useful to indicate with metadata that you’d like sources or docs downloaded automatically.

bfabry17:09:33

I mean it would definitely be useful if I didn't need to jump to the definition and click download sources the first time

cfleming17:09:44

Ok, I’ll see how difficult that might be to implement.

cfleming18:09:09

I did have an implementation that did something similar previously, I can probably fish it out of Git and brush it up.