Fork me on GitHub
#cursive
<
2018-04-12
>
rarous05:04:42

and in HTML as well

👍 4
agigao12:04:15

Any shortcut to view docs in Cursive?

dirklectisch12:04:06

@chokheli Hit F1 on a symbol to read its doc string

agigao12:04:28

well, it sends me to IntelliJ help

joelsanchez12:04:31

q as in "doqumentation"

👍 8
agigao13:04:38

Thanks Joel for the tip, somehow, it turns out the shortcut is - CTRL + J

grierson15:04:38

How can I get Cursive to (run-tests) every-time I save? I was looking at creating a REPL command which would execute (run-tests) but I would have to keep switch my REPL to the test ns.

tony.kay18:04:46

Is there something I can put in project.clj to cause IntelliJ/Cursive to mark (custom/extra) directories as excluded when I import the project?

polymeris20:04:37

Hi. Quick question: how do I remove a Cursive license from an intellij install? Returning a corporate notebook where I was using my personal license.

polymeris20:04:51

Oh, found CursiveLicense.xml. Removing that should work, I suppose

cfleming20:04:19

@grierson the doc is slightly out of date there, you can now specify which ns to run the command in.

cfleming20:04:01

@tony.kay No, there isn’t, but it’s a good idea. Something like :cursive/excluded-paths [...]?

cfleming20:04:22

@polymeris Yes, that should work.

tony.kay20:04:39

@cfleming that would be awesome

tony.kay20:04:34

I keep getting everything from node_modules to cljs compiler output in my “open …”

grierson21:04:38

@cfleming is there a way to get tests to run continuously like NCrunch/DotCover/Wallably.js?

Matthew Davidson (kingmob)21:04:35

@tony.kay I think you have to right click on node_modules and choose “Mark Directory As > Excluded”

Matthew Davidson (kingmob)21:04:44

@cfleming In the top-right of the REPL window, what does the little “clj/cljs” dropdown do?

rads21:04:13

when using Parinfer v3 I notice that Cursive will reformat the whole file to fix formatting even if I haven't modified those lines

kenny21:04:31

@kingmob It tells you your REPL type. Not really sure why it's a dropdown because it changes automatically.

rads21:04:32

is it possible to make it so Parinfer only reformats code that I've modified since the last save?

rads21:04:51

I got confused about why my code wasn't working because Parinfer reformatted some old code that changed the logic

rads21:04:52

somewhere unrelated to my changes was a map like this:

{:a 0
:b 1}
Parinfer reformatted it silently to this:
{:a 0}
:b 1

cfleming23:04:19

@kenny @kingmob Right, it tells Cursive which sort of REPL you’re connected to. Cursive tries to detect it automatically, but can’t always - it’s a dropdown so you can manually override it if Cursive gets it wrong.

cfleming23:04:57

@grierson No, there isn’t unfortunately, although it’s something I’d love to add.

cfleming23:04:39

@rads Which version of Cursive are you running? That’s concerning because the v3 integration shouldn’t do that.

cfleming23:04:47

That did happen with the earlier versions.

cfleming23:04:01

@tony.kay You shouldn’t be getting your CLJS compiler output in there, that should be excluded based on your project.clj config. node_modules is not excluded currently, that would definitely be a good use case for an extra key in the project map.