Fork me on GitHub
#cursive
<
2017-11-12
>
akiel14:11:57

Today in 1.6.2-eap2-2017.2 all my local REPL’s stoped working with the error: No leiningen modules containing clojure.main found. I have no idea what I can do about it. Anyone else?

akiel14:11:23

Sorry solved my problem. It wasn’t about Cursive. Somehow my JDK was broken. I installed a new one and now everything works fine.

cfleming20:11:16

@gfredericks Cursive actually doesn’t do anything at all specific to plugins, except for ensuring that classloaders etc are correct when it calls into them.

cfleming20:11:52

Hopefully you might get actual exception stacktraces in the log, Help-&gt;Show log in Finder/Explorer

cfleming20:11:24

@bfabry Suggestions very welcome 🙂

cfleming20:11:36

I think everyone has their own personal 20% of paredit they use.

cfleming20:11:24

@gfredericks I’m actually working on lein at the moment because of 2.8.x, so I’ll try to look at your thing this afternoon.

gfredericks20:11:53

@cfleming once I figured out that snapshots were bad, everything was better

gfredericks20:11:07

between that and using one plugin instead of a plugin wrapping another plugin, I think everything is working

cfleming20:11:43

Interesting, so there’s a problem using snapshot plugin versions?

cfleming20:11:51

Is that a Cursive-specific thing?

gfredericks20:11:55

couldn't tell -- it wasn't just with using snapshots -- I had to use a snapshot version, then lein install the same snapshot version (i.e., mutate it), then try to run again

gfredericks20:11:08

thus my suspicion about hashing

cfleming20:11:57

Hmm, Cursive itself doesn’t do anything like that (or anything specific to plugins, really), I can’t remember if Lein does - I’d be surprised.

gfredericks20:11:58

I suppose you could test that theory more directly by just editing the SNAPSHOT jar directly

gfredericks20:11:34

yeah it was weird; I imagine if I had used the Show log option you talked about I might have gotten more insight

gfredericks20:11:52

as it was it was claiming it just couldn't create the classpath or something of that sort

cfleming20:11:21

Hmm, strange

souenzzo22:11:54

@cfleming when I convert a cljs file to clj, cursive loses all syntax highlight

cfleming23:11:14

That’s extremely weird, I can’t think why that would happen. Does invalidating caches help?

souenzzo23:11:14

i remove/open close/move/copy paste all files and tons os other stuff.. Now I stoped everything. Will start from zero.

souenzzo23:11:26

Where I can exclude intellij/cursive cache?

cfleming23:11:52

What I mean is File->Invalidate caches and restart

cfleming23:11:42

That will force your indexes to be rebuilt, so if the problem is that they have become corrupted that should help.

souenzzo23:11:13

slowly rebuilding

cfleming23:11:53

Yeah, sorry about that.

souenzzo23:11:16

Back to work

cfleming23:11:22

That fixed the problem?

souenzzo23:11:52

but I deleted .m2 and "copy'n'paste" all project (it's a small new one)