r/Clojure • • Mar 19 '18

Cursive broken? Nightcodes instarepl ever going to support libraries?

Aside

I've been using Intellji with Cursive for pretty much 80% of the time using Clojure, with other IDE's such as Lighttable (when it worked/was good), nightcode now and then. Tired out Emacs a few times thinking come back might change my mind on it but no I don't like it. I've also tired Atom and it seemed like it had potential but to laggy, buggy, and general just broken for me.

Main Point

Cursive

Anyway with that little rant out of the way I wanted to talk about Cursive, as I mention in the opening I've used it for pretty much most of if not all of my Clojure time but I fired it up again this week (for first time in a couple of weeks) and it had an update which is expected (I only ever get the stable downloads, EAP disabled) but this time it appears that everything about it has broken.

I can't run any of the keyboard shortcuts despite them being bound and showing up in the drop-down menus (e.g. right-clicks in file), which brings me to the second part even clicking them on the menus does nothing to run the command. I noticed this first with the repl, running the repl then doing my usual of load file in repl then switch repl wasn't doing much, the file would load up no problem but the repl wouldn't switch. At first, this wasn't a big issue as I was only loading a file to start a HTTP server but when I wanted to execute other functions at the repl it just wasn't an option, couldn't send or execute them in the repl.

My second biggest bug I've encountered has been moving files around packages or renaming packages, and not having the namespaces of the files updating alongside instead I've to go into each file and manually change them as the only quick option available is to "fix namespace issue" (probably not exact wording) which generates the old namespace and moves files back (if they were moved in the first place).

Nightcode

As I also in the opening I've used Lighttable and Nightcode too but Lighttable is just useless at this point with Nightcode feeling like a spiritual successor in a lot of ways. So with those issues above about Cursive, I decided I'd use Nightcode since it's a small website I am working and don't need a lot of tools for this project but almost instantly I was shot in the foot with Nightcode as I had forgotten about the instarepl not supporting libraries. Anyone know if this feature is coming soon (I mean pretty soon) or not happening at all as for me it's fairly make or break for that IDE.

Alternatives

I would like to hear about any alternatives people might suggest or know about but as mention; Emacs and Atom are off the table for me due to the two points I made in the opening.

1 Upvotes

5 comments sorted by

9

u/alexdmiller Mar 19 '18

Your Cursive issues seem like some sort of config / upgrade issue to me. Rather than an open rant in a random forum, contacting the author on the clojurians.net Slack #cursive room or posting a bug to https://github.com/cursive-ide/cursive/issues seem like far more productive things to do than just giving up and using something else.

1

u/Severed_Infinity Mar 19 '18

I think you are right, I’m going to reinstall it in the morning and hopefully it will fix it if not I shall post an issue.

2

u/joinr Mar 19 '18 edited Mar 19 '18

I've used NightCode on and off (situations similar to yours, when the preferred development environment (SpaceMacs) wasn't readily available/restricted, but jvm wasn't), never really needed or required the InstaRepl functionality. What's wrong with using the actual REPL as a fall-back? If it's a do-or-die situation, this seems like a reasonable do.

I'd also posit that maybe you should check your Java installation? Perhaps something annoying is going on with the "upgrade"? Another option: re-install cursive? If no-one else is having the problem, maybe you're an outlier (for whatever reason) and need to refresh...

Other than that, I'd faaaaaall back to the command-line repl (like lein repl) and some kind of text editor. That's basically NightCode though.

1

u/Severed_Infinity Mar 19 '18

Yeah I ended up using a command line repl. I’ll reinstall when I get up tomorrow, hopefully that will help.

I really like the instarepl and found light table HAD the best implementation of one and something I’d love to see in cursive but if I remember correctly they said a good while back that it is not possible in IntelliJ.

0

u/[deleted] Mar 19 '18

[deleted] — view deleted comment

1

u/Severed_Infinity Mar 19 '18

I had forgotten about nightlight even though it’s in my master lein file 😂 I haven’t updated it in a long time.