Fork me on GitHub
#cursive
<
2018-11-13
>
mhuebert03:11:14

I mean - this evaluation style is already supported/possible with shadow-cljs - but I don’t know that there’s a way to indicate to cursive’s static analysis that :node should be treated like :cljs

cfleming03:11:15

@mhuebert There isn’t, no - if you could file an issue for that I’ll take a look to see how difficult it might be.

sooheon09:11:43

@cfleming How do I control what hotkey the Cursive REPL is bound to when I Ctrl-tab? I used to be able to ctrl-tab + r for REPL, but suddenly it’s moved to p

tony.kay16:11:11

@cfleming The deps improvements are great! I just toggled between a local root and mvn version without incident. Thanks!

tony.kay17:11:18

And yay! Autocomplete in deps.edn for dependency versions!!!

cap10morgan17:11:43

Anyone using Cursive with mount? I can't get it to resolve defstate as def nor fix the indentation.

Ben Grabow17:11:33

Any suggestions for optimizing TDD workflow? Right now I have no default hotkeys assigned for "Run test in current NS in REPL" or "Re-run last test action in REPL". Is there a good hotkey to use for one of these, or a way to automatically re-run tests after, e.g. eval'ing a new form in the REPL?

tony.kay18:11:53

@cap10morgan yep…mount latest does that

cap10morgan18:11:44

Thanks. Is there a bug filed somewhere already I can track?

tony.kay18:11:15

not that I know of

cap10morgan18:11:32

OK, I can file one. Do you know if it is Cursive's bug or mount's?

tony.kay18:11:43

it’s not technically a bug I would guess…it’s almost certainly macro magic mount is doing that is “hiding” it where cursive can’t see it

tony.kay18:11:00

you could look at the diff from 12 to 13 and probably figure that out

cap10morgan18:11:20

Hmm, probably an interaction issue between macrovich/deftime in mount and Cursive's indexing. Ha, yeah, what you just said. 🙂

tony.kay18:11:28

I’d encourage you to bug mount first, since Colin on cursive gets pretty swamped…I feel like lib writers should be a bit more careful with macro usage…but that’s just my opinion

cap10morgan18:11:40

Yeah, agreed. I'll start there and see the mount folks think. Thanks for the pointer!

cap10morgan19:11:58

One last question: With mount 0.1.12, do you have to tell Cursive how to treat defstate or did it already have mount handling preconfigured?

tony.kay19:11:12

had to tell it

tony.kay19:11:19

told it def

cfleming22:11:20

Just from reading the above, it sounds like Mount master has switched to macrovich, is that correct? There’s actually a Cursive issue to support that too, I’ll look into that.

cfleming22:11:21

I’ll see if I can get that in the next EAP, several people have asked about it.

cfleming01:11:52

I’ve fixed #1847 at last.

tony.kay18:11:01

back off to v x.12

tony.kay18:11:53

@ben.grabow I use CTRL-C (for clojure) CTRL-A (run all) and CTRL-C CTRL-T (run test under cursor)

Ben Grabow18:11:40

Do you remap the "copy" and "select all" keybindings? I use those pretty frequently.

tony.kay18:11:40

ah, I’m on mac…so ctrl is diff that CMD

tony.kay18:11:23

and those are “two keystroke” shortcuts

tony.kay18:11:35

in IntelliJ key mappings use the “second key” thing

Ben Grabow18:11:48

Ah, I should mention I'm on gnome-linux.

tony.kay18:11:22

Yeah, just find something that isn’t already mapped…or that you don’t use…like ALT-T

tony.kay18:11:51

The two-keystrke thing is handy when you’re running low, but I recommend something you can hit easily, sicne you do it a lot

Ben Grabow18:11:59

Ctrl+Shift+T is available so I'll try that for a bit. Thanks!

tony.kay18:11:12

and CTRL-c CTRL-R for re-run

kanwei21:11:37

started getting this while trying to "run all tests in ns" today

kanwei21:11:39

Loading test/doublethedonation/mp360_api_test.clj... 
Syntax error compiling at (mp360_api_test.clj:1:1).
Alias db already exists in namespace doublethedonation.mp360-api-test, aliasing doublethedonation.db

kanwei21:11:07

never happened before until recently, it's just a simple

(ns doublethedonation.mp360-api-test
  (:require [doublethedonation.db :as db]

kanwei21:11:07

ok, only seems to do that when there's an uncaught exception in the tests