Fork me on GitHub
#cursive
<
2016-03-20
>
cfleming04:03:16

Cursive 1.2.1 is out, with support for IntelliJ 2016.1 and Parinfer!

joshg05:03:39

I just update cursive, but I’m getting dependency cycle errors (time.clj -> time.clj). I’m not using time.clj anywhere and everything worked with the previous version. Is this due to a transitive dependency’s cyclic require?

joshg06:03:15

It appears to be an issue when requiring the manifold.deferred namespace. Has anyone else had errors using manifold with cursive?

joshg06:03:57

I can’t find the cyclic dependency in manifold’s time.clj. Manually executing load-file in the REPL works.

rauh06:03:31

@cfleming: I'm getting Can't load PluginDescriptor[name='Cursive', classpath='/tmp/plugin/clojure-plugin']: until build 143.9999 does not match IU-145.258

cfleming06:03:50

@rauh: That message means that the plugin is the v15 version, and IntelliJ is v2016. If you go to Settings-&gt;Plugins can you update it?

cfleming06:03:01

@joshg: There were a couple of bugs fixed in the transitive loading. I’ll try to reproduce with that. When are you getting that - when doing “Sync files in REPL”?

cfleming06:03:00

@joshg: There have been some issues with manifold in the past, it does some crazy things: https://github.com/cursive-ide/cursive/issues/535

cfleming06:03:10

In particular, it uses bare require outside the ns form because that way clojure doesn’t complain about dependency cycles. I can’t remember what the fix from that issue was, I’ll look tomorrow morning. Could you file an issue for that?

joshg06:03:21

Yes, when I attempt to load the file or sync files

joshg06:03:32

If I evaluate each form, I don’t have a problem

joshg06:03:04

alternately, if I call load-file, it loads and executes fine (as it did in the previous cursive version)

rauh06:03:17

@cfleming: Yes, I've clicked update a few times and it downloads properly. But it doesn't seem to get loaded. I just tried with the Community edition instead and it seems to work. Though the source code highlighting is really weird.

cfleming06:03:32

@rauh: That’s very strange. Try downloading http://updates.cursive-ide.com/downloads/cursive-1.2.1-2016.1.zip and installing from disk.

cfleming06:03:07

IntelliJ’s update mechanism drives me nuts, I can’t figure out how to make it reliable when upgrading platform versions.

joshg06:03:14

Is there a way to turn off Cursive’s transitive cyclic dependency checking in favor or Clojure’s looser requirements? It’s not a huge issue, as I can just manually execute load-file in the repl. It’s just nice to do that from a keybinding.

cfleming06:03:17

@joshg: Yes, Settings-&gt;Languages and Frameworks-&gt;Clojure-&gt;Load out of date dependencies transitively

joshg06:03:39

indeed, disabling that setting fixed it, thanks. I’ll file an issue

rauh06:03:04

@cfleming: Manual install worked, but still poor syntax highlighting.

cfleming06:03:22

@rauh: Can you post a screenshot?

cfleming07:03:17

Back in a bit, dinner time

cfleming07:03:44

@rauh: What are you not liking about that? I’m not sure what it looked like before.

cfleming07:03:45

Ok, definitely dinner time now. Back in a while.

rauh07:03:02

@cfleming: Yeah I may have had some modifications. I'm looking into that. Therer is "Dracula (Copy)" theme. Mainly the keywords used to be in a different color. Would have to check if there is more...

rauh07:03:15

@cfleming: It was only really the keyword color which I copied from my previous color schema and all looks normal. I guess it looked really weird since the code is littered with keywords simple_smile. All working now.

rauh08:03:49

If I parinfer (like tab) and then undo, the cursor jumps way back to the last edit (not where I was).

cfleming08:03:35

@rauh: Could you file an issue for that?

cfleming08:03:53

Undo/redo is tricky with parinfer, but that sounds wrong.

rauh09:03:15

@cfleming: Parinfer edit mode also makes the (ns (:require etc... autocomplete/suggester not work (ie no popup). Well, it still comes up manually (with a CTRL+SPACE). So not a biggie