Fork me on GitHub
#cursive
<
2018-01-12
>
kenny01:01:42

Is there a way to pass Cursive the Java classpath string?

kenny01:01:53

Simply adding a jar to :resource-paths in project.clj does not work.

cfleming09:01:16

@mbjarland It’s not at the moment, no. It’s tricky because I can’t say “align the values unless the key is wider than 20 chars, in which case don’t align that value”, it’s pretty all or nothing. cond often has some long keys (if it’s an expression or something) and that looks really weird and is annoying if you can’t disable it.

cfleming09:01:39

I’m going to revisit that and see if I can do anything, though.

cfleming09:01:56

@kenny Hmm, that should work I think. If you pass a full path rather than a relative one, does that work?

danm10:01:46

Hi @cfleming, just seen the comments in #boot. I thought Cursive didn't do anything with boot (I'm still using the boot lein generate stuff). The feature requests still seem to be open for boot support. Did I miss something?

mbjarland11:01:53

@cfleming thanks. Could we use a disable comment ala disable inspection as intellij does for java/groovy/scala/x inspections. Then you could (if the feature is enabled in code formatting) format all cond/assoc/etc statements except when it is explicitly disabled with a special comment. At least in my code, it seems that the cases where I would like for this to happen are more frequent than the ones where I would like to disable it

kenny18:01:36

@cfleming So if I add "/home/kenny/.m2/repository/org/clojure/clojure/1.9.0/clojure-1.9.0.jar" to my :resource-paths, everything is marked as cannot be resolved.

Kent22:01:51

Does the Cursive IntelliJ Plugin provide assistance for running polyglot projects? For example, I have a Java Spring Boot project calling a method in my Clojure library. Everything works for me, I have Gradle configured to build the project, and I can run it with java -jar [myprogram.jar], except for running from an IntelliJ run configuration.