Fork me on GitHub
#cursive
<
2017-03-27
>
unbalanced14:03:25

morning morning... qq: does intellij ultimate vs intellij community have any impact on cursive features?

tord15:03:28

@goomba: If you are only doing Clojure development, I'm pretty sure there is no difference.

unbalanced16:03:15

I wouldn't think so but would like to make sure 🙂

genec17:03:18

I'm having trouble setting up the cursive keybinding shortcuts, settings > keymap > clojure keybinding > cursive as the apply button is grayed out. It doesn't seem to match the cursive website instructions. I have been able to map ctrl-enter to "send form before caret to repl"

genec17:03:29

Will anyone be at clojure west this week who would want to do a cursive setup / best practices un-session?

zylox17:03:54

are you on the default profile?

zylox17:03:23

sometimes intellij is really bad abour telling you when you have to copy a profile (in my opinion) to be able to change it

cfleming22:03:35

@moizsj I haven’t planned it, but it’s certainly one that is getting more useful with spec

cfleming22:03:58

@goomba No, there’s no difference right now (deliberately). There’s a possibility that the CLJS support might integrate with IntelliJ’s JS support at some point, but I’ll only do that if Cursive could work in a cheaper IDE providing that support (i.e. WebStorm etc)

cfleming22:03:36

Currently it can’t because the Java support is not a pure plugin, so it can’t run in WebStorm or the other IDEs. They have a project to fix that but I believe it’s stalled.

unbalanced22:03:13

gotcha gotcha

unbalanced22:03:28

just wanted to make sure I wasn't missing out on anything, thanks 🙂

cfleming22:03:27

@genec Can you send a screenshot of the keybindings screen you’re looking at?

cfleming22:03:28

@serioga So, there is some support for that, and I’d expect it to work if you have no symbol resolution issues.

cfleming22:03:19

Going to the decl of .getElementById won’t be very useful in general, it’s just a stub

cfleming22:03:40

But I guess the Rx stuff would be.

cfleming22:03:28

@rauh You’re still getting that arity error in the REPL?

cfleming22:03:46

Can you try (meta #‘cursive.repl.runtime/completions) and see what it comes back with?

a2_himmel23:03:36

in cursive/intellij, on ctrl-alt-L (format code), I'm getting hideous 6 character wide indents, even though my editor/code style settings for Clojure files is 2. Any ideas on this? Is there a separate setting for Cursive? For ClojureScript?

cfleming23:03:07

@a2_himmel Can you send a screenshot of a form formatted like this?

cfleming23:03:26

The issue is that your symbols are not being resolved for some reason.

cfleming23:03:34

Which is why they’re all marked in yellow.

a2_himmel23:03:51

hmmm, yeah, i've been ignoring that for now

cfleming23:03:07

This is CLJS?

a2_himmel23:03:17

yeah, in a re-natal om-next template project

cfleming23:03:27

Yes, it must be, just saw the js/

cfleming23:03:13

Ok, look in your project toolwindow, and expand out your External Libraries - is ClojureScript in there?

cfleming23:03:26

This is a lein project?

a2_himmel23:03:06

it's not in there

a2_himmel23:03:41

and it is a lein project

cfleming23:03:41

Ok, open your lein toolwindow (_View->Tool Windows->Leiningen) and check to see if your project is registered there.

cfleming23:03:20

Ok, in the project toolwindow, right click your project.clj, and select “Add as lein project"

a2_himmel23:03:24

added it there, looks good!

a2_himmel23:03:40

now only the js/ commands are in yellow, as well as the ReactNative stuff

cfleming23:03:43

Or through the lein toolwindow, right.

cfleming23:03:50

Ok, and reformatting should look nicer

a2_himmel23:03:11

it does, thank you

cfleming23:03:52

The js/* stuff is a bit hit and miss, some will work but there’s no type inference or anything like that, which would help a lot with that.

a2_himmel23:03:02

cool. i'm pretty new to the toolchain, though i've been reading up on clojure for a year. making something for mobile in it is kind of like being a kid in a candy store, i'm trying to take it all in without getting overwhelmed

cfleming23:03:26

Nice, I’m excited for React Native too, but I haven’t had time to play around with it yet.