Fork me on GitHub
#cursive
<
2019-06-04
>
artrmrno00:06:09

Would it be possible to get clojuredocs support in cljs files? I know there's no 100% parity between Clojure and Clojurescript, but it will be nice to have it for common functions.

cfleming01:06:10

@roklenarcic What that means is that you’re using an nREPL connection with a REPL designed to be used as a streaming one, i.e. reading from stdin. What that means in Cursive terms is that you’re probably choosing an nREPL REPL type instead of clojure.main. If you do want to use nREPL with CLJS (which works better with Cursive) then you need to set up piggieback and use that.

roklenarcic07:06:49

ok thanks cflemming

Jakub Holý (HolyJak)12:06:54

Since a while ago my REPL/Cursive "freezes" when I run "Switch REPL NS to current file" for +- 5s - when I type in the REPL input window, nothing happens, when I want to move the cursor using arrows in the source file, nothing happens... . Anybody else has experienced this? IntelliJ 2019.1.2, OSX. Could be due to a recent IntelliJ or Cursive update. Running manually (in-ns ..) in the REPL is OK.

Ivar Refsdal14:06:51

@holyjak Not having this issue here. IntelliJ 2019.1.3, Cursive v1.8.2-eap4-2019.1, Linux

👍 4
Kari Marttila18:06:09

Are there somewhere good color schemes for Clojure for IntelliJ. I kind of like Emacs Clojure mode color scheme and I'd like to configure the same color scheme for IntelliJ for Clojure - to have the same look and feel. Or where do I see the actual color mappings in Emacs Clojure mode (tried to find them in the eLisp source code but couldn't find them there)?

Kari Marttila19:06:45

Is there some Cursive keymap command that would kill the S-expression around the cursor? E.g. if I have

(def my-keys (map keyword my-header))
in my editor and my cursor is inside the inner S-expression somewhere (e.g. after the "k" in "keyword"), then giving that shortcut key command would kill the whole S-expression (i.e.
(map keyword my-header)
) leaving:
(def my-keys )
... and
(map keyword my-header)
would be in clipboard.

isak19:06:33

@kari.marttila I'm not sure if you can do it exactly like that, but you could "Move backward out of Sexp" then go for the kill

isak19:06:22

oh, looks like you can record a macro that does both, then assign it

Kari Marttila20:06:33

Ok. But there is no ready paredit command, I guess?

Kari Marttila20:06:00

This is no big deal, I was just wondering if there is such a paredit command...

cfleming21:06:27

@holyjak I haven’t experienced that, or received any reports of anyone else getting that either.

cfleming21:06:15

If it continues to happen let me know and we can try to diagnose it.

👍 4
cfleming21:06:50

@kari.marttila No, there’s no command that will do that in one go.

kenny22:06:21

I have some huge items in my REPL history that cause IntelliJ to slow to a halt when bringing up the REPL history window. Is there a way to clear the REPL history?

cfleming22:06:01

@kenny Ugh, sorry, no, I think there’s an issue about that. As a workaround, you could quit IntelliJ, delete .idea/replstate.xml from your project and then restart.

kenny22:06:43

I don't see a replstate.xml file.

kenny22:06:55

Oh, maybe it only gets created when the REPL is exited?

cfleming23:06:10

Possibly, and IntelliJ will cache the data in memory and just write it periodically, which is why you have to exit.