Fork me on GitHub
#cursive
<
2021-04-16
>
baibhavbista04:04:09

Hello, I had a question regarding using Ultimate vs Community version of IDEA with Cursive. Does anyone know what (if any) features I will not get if I use the community version? Would love answers about what features you all regularly use that would not be possible in the community version.

cfleming05:04:04

There are no Cursive features that require the Ultimate edition at the moment. Obviously you would not have the IntelliJ features (web stuff is probably the main one people miss) but Cursive will be exactly the same in both.

cfleming05:04:26

That may change in the future, especially around better JS support for CLJS, but that’s still unknown at this point.

baibhavbista06:04:51

Thank you for the clear answer 😄

raspasov18:04:18

Ultimate has nicer support for exploring JS stuff around React, etc. Been using Ultimate for a couple of years, but as far as I remember the Community didn’t “understand” JS files very well or at all. If you just focus on server side Clojure, you’re just fine with Community most likely (since Community has almost identical pure Java support with Ultimate, as far as I remember). I would start with Community and see if you miss anything. Relatively painless to upgrade.

raspasov18:04:34

You should be able to copy over your custom settings, etc over to Ultimate without much issue. I don’t recall any problems.

imre20:04:48

@cfleming I read that there's a new version out but my intellij doesn't seem to see it. I'm on 1.10.2-eap2-2020.3

imre20:04:40

tried checking for updates a number of times but no luck

cfleming03:04:34

Hmm, I'm not sure - I just checked the repo page, and it should definitely be there even for EAP users.

imre09:04:53

Thanks for checking. Managed to update now via idea properly

kenny21:04:37

Is there a Cursive setting that lets you have autocomplete prefer (or only) use unaliased keywords even if an alias for that ns exists?

cfleming03:04:59

There isn't at the moment, but it's something I've considered.

kenny15:04:45

I’ve really started to dislike aliases for keywords. The only alternative is to type the whole thing out. It’d be great to have this as an option 🙂

cfleming23:04:58

I'm curious - why don't you like them?

kenny00:04:28

They tie data to code. Copy pasting code does not work. Renaming a namespace breaks all keywords (bad if that data went into a DB).

kenny00:04:03

I've started to think of them as an anti-pattern.

kenny00:04:00

It's really hard to move away from it when autocomplete so strongly wants me to use them, haha.

cfleming00:04:17

Interesting. I’m actually planning to fix the copy paste issue, for keywords and also for symbols referring to vars. In the case of data, systems wouldn’t store them as aliased anyway normally, would they? I’d assume they’d be using a semantic kw object with ns and name parts. The alias thing is really just a reader shortcut, and doesn’t exist in e.g. EDN.

kenny00:04:09

It is recommended for all data stored in Datomic to be qualified keywords. Data is inputted and outputted in keywords.

cfleming00:04:46

Sure, but what I mean is that Datomic won’t store it with the alias, it’ll store it with the full ns/name combo, right?

kenny00:04:21

Oh, haha. Yes - that is correct. The reader always expands first.

kenny00:04:17

It still seems to be mixing my data with my code. I have no need to require a namespace simply to refer to my data (I'm assuming that's the thought on how to fix it). I only want to work with the data.

cfleming00:04:17

I’m not proposing a solution, just trying to understand the problem better. Is there a case where the aliasing causes a problem? I get the copy/paste issue. Renaming namespaces shouldn’t be a problem, renaming aliases might if Cursive doesn’t handle that properly.

kenny19:04:57

This isn’t a problem with Cursive, just aliases. I don’t like that it’s depending on the context of the namespace. Since it’s just data, I prefer to have it be exactly that — no implicit context involved.