Fork me on GitHub
#cursive
<
2016-01-14
>
jcromartie18:01:34

I've been struck by the "Error creating JavaParameters" REPL startup error.

jcromartie18:01:44

Not sure why. Not sure where to find more log output or anything like that.

jcromartie18:01:46

I've got a multi-module project with many large modules

jcromartie18:01:09

and checkout dependencies in one "top-level" module

jcromartie18:01:20

do I not need checkout dependencies when using Cursive?

jcromartie18:01:55

I've got some cider-nrepl stuff in my .lein/profiles.clj that I've just removed, trying that...

jcromartie18:01:12

interesting... Failed to collect dependencies for [#object[org.sonatype.aether.graph.Dependency 0x7b33a95b "org.clojure:clojure:jar:1.7.0 (compile)"]

jcromartie18:01:19

this error is just for some of my modules, not all of them

jcromartie18:01:32

I can start up a REPL for most of the library-style modules

snowell18:01:04

@jcromartie: When Colin was helping me with the same issue, he pointed me to the Module settings. Make sure that it has an SDK set to “Project SDK” and that said SDK is a valid one

snowell18:01:17

Granted, that didn’t fix my issue, but maybe it’ll help yours 😄

jcromartie19:01:56

haha, ok, I'll give it a look

jcromartie19:01:59

did you ever fix yours?

jcromartie19:01:09

I saw you pop up in logs of this channel

jcromartie19:01:13

and with no answers 😞

hugesandwich19:01:29

Not sure if I should ask this here, but does anyone run figwheel directly from Intellij/Cursive using the instructions here - https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL

hugesandwich19:01:17

I'm able to get things working, but not sure what people are doing to deal with lein profile merging. I obviously could pass a config map of whatever settings I want for figwheel or create a figwheel.edn file, but neither sounds great as the complexity of my project.clj expands. Rather, I really just want to pass in a merged profile like running lein figwheel, but that doesn't play as well with cursive - among other things, I need to use a remote nrepl connection (did this in the past) in that case unless I'm missing something.

jcromartie19:01:57

just a guess, but could it be a run configuration?

hugesandwich19:01:19

So in other words, everything works great with lein figwheel since it merges my profiles correctly, but per the docs, this doesn't happen if you run it via a clojure script to make it play nice with cursive. I haven't ever done much with merging lein profiles via code, only at the command prompt. Just wondering if someone here is using cursive + figwheel and has a better workflow than duplicating configuration in project.clj. In general, I'd like to move away from the remote nrepl approach.

snowell19:01:26

@jcromartie: No solution yet, but it’s not the end of the world, so I’ve gotten by with the regular nREPL external to the project

jcromartie19:01:24

so, "lein repl :headless" in the terminal?

jcromartie19:01:29

then connect from Cursive?

snowell20:01:38

Or just edit the REPL configuration and check “Use nREPL in normal JVM process” instead of “Run nREPL with Leiningen"

cfleming21:01:52

@jcromartie: @snowell: I’ll try to look at this today.

cfleming21:01:12

I’ll probably need to add some logging and send someone a dev build, since that error comes back from IntelliJ

cfleming22:01:20

@ikitommi: I’ll look into adding support for that.