Fork me on GitHub
#cursive
<
2020-05-19
>
denik16:05:59

@cfleming looks like cursive doesn't infer arity from arglists? Could also be a CLJC / reader conditionals problem

denik16:05:23

definition

Alex Miller (Clojure team)16:05:23

Am I misreading or does that arglist not match the actual function?

denik16:05:06

It has arities for both lists in arglists, being the 1st and 3rd. The others can be but are not meant to be used.

cfleming22:05:39

Cursive doesn't take that information from :arglists, no, because that information isn't very reliable and has no defined format (see e.g. defn)

cfleming22:05:18

Is your callsite there where you're seeing the error cljc?

denik00:05:02

thinking about it, it might be correct. I'm calling it from a cljc file and clojurescript is missing this arity

denik00:05:49

Ok, I just converted the file to .clj

denik00:05:53

the same error persists

denik00:05:24

only arity 4 and 5 (the ones outside reader conditionals) work

Jurko20:05:37

Hi. I have a problem with formatting threading macros. https://github.com/clojure-emacs/clojure-mode/issues/265#issuecomment-66925038 many years ago #cursive said I could configured it, but I can't find how. Could someone help me with this setting?

Jurko10:05:14

This not answering my question, unfortunately.

Jurko10:05:41

I want make Cursive format t-macros like that

(-> first
    second
    third)
but it does other way with "2 spaces".

cfleming11:05:08

You can do that by configuring the -> form to have an indent of 0.

Jurko11:05:39

What I'm doing wrong?

cfleming11:05:21

Your problem is that your project isn't resolving correctly. Your ns form is saying "ns cannot be resolved", right?

cfleming11:05:27

How did you create this project?

Jurko11:05:40

File -> New -> project -> Clojure -> Clojure Script Deps.

cfleming11:05:19

Is this file under a source root? A blue or green folder in the project view?

cfleming11:05:18

If you open the deps toolwindow, do you see your project there?

Jurko11:05:25

ok, i found the problem. I did some how turn of Indentation in settings.

Jurko11:05:18

@cfleming Thank you for help!

cfleming11:05:22

No problem! I'm glad it's working.

tanzoniteblack23:05:58

@cfleming both a colleague and I, while working on the same multi-module deps project, have had intellij complain about low memory issues while running cursive 1.9.2-eap3-2020.1.

cfleming23:05:25

Yes, that's https://github.com/cursive-ide/cursive/issues/2371. I have a fix and a new EAP should be out today.

cfleming05:05:42

This is out now in eap4.

tanzoniteblack23:05:29

I'm running with 16 GB of heap allotted to intellij and didn't have any issues on the previous eap or the latest stable

tanzoniteblack23:05:42

(I had to disable EAP's and downgrade to be able to work again)

tanzoniteblack23:05:39

both he and I saw intellij say "Synchronizing clojure deps project" shortly before the ide started freezing up