Fork me on GitHub
#cursive
<
2016-09-09
>
pupeno10:09:08

How do I add a Java argument (now heap space) to a lein task?

cfleming10:09:04

@pupeno You have to add them to project.clj

cfleming10:09:37

I’ve gone back and forth on whether Cursive should allow you to override args that are provided in project.clj

cfleming10:09:51

For reproducibility, the idea is that they should be there.

cfleming10:09:56

If I let users override them in the run configs, merging them is pretty hard - parsing all the JVM options to filter dupes (e.g. if you specify -Xmx in project.clj and then override it in the run config, I have to remove one of them and replace it with the other).

cfleming10:09:32

I’m open to opinions about whether that should be allowed per-task (or per-REPL, etc)

pupeno10:09:35

Understood.

pupeno10:09:09

Also, what does the clj cljs select above the repl do?

cfleming11:09:44

Yes, that’s the best solution. I’m going to add an integrated solution shortly.

cfleming11:09:04

When you’re using a REPL, often you’ll connect to a Clojure REPL and then switch it to a CLJS one. Cursive has no way to know you’ve done that, and it needs to know whether the REPL is currently expecting clj or cljs. It tries to autodetect by looking for common banner strings, but sometimes you have to override it manually.

pupeno14:09:13

Argh... It's hard to find available key shortcuts in intellij

pupeno14:09:44

What's the difference between kill and kill sexp?

imre15:09:21

haha! I'm just planning a big rethink of how I organize my shortcuts

imre15:09:40

probably a chordy direction for less-used stuff

shaun-mahood15:09:33

@pupeno: if you start with the figwheel template, you can add and run the repl script from that wiki without any of the other changes. That wiki info is a bit out of date I believe but there is nothing better, and I've had some difficulties getting it to work from certain lein templates.

cfleming19:09:51

@pupeno Yeah, it’s really difficult to find enough shortcuts. Note that conflicts don’t matter if the Clojure action conflicts with something that isn’t used (or isn’t used much) for Clojure

cfleming19:09:28

Kill kills forms until the end of the line (and continuing if the last form on the line continues), kill sexp kills a single form.

pupeno19:09:42

Yeah... I'm not familiar enough with intellij to make good decisions on conflicts.

pupeno19:09:15

Would you be up to doing it together. I could share my window, propose shortcuts and you tell me if the conflicts are acceptable.