Fork me on GitHub
#editors
<
2015-06-26
>
denik15:06:56

@cfleming: I saw someone using cursive to run tests after changes where made to the source code but could not find any further info. Ideas?

cfleming16:06:15

@denik: The test integration is described here: https://cursiveclojure.com/userguide/testing.html, although it’s a little out of date

denik16:06:37

@cfleming: saw that! no auto-test runner though

cfleming16:06:42

@denik: There’s nothing like auto-test right now unfortunately

voxdolo16:06:25

using cursive doesn't preclude running https://github.com/jakemcc/lein-test-refresh in the terminal window in the editor though simple_smile

cfleming16:06:45

@denik: I’m planning to add that soon though - unfortunately lein …. what @voxdolo said simple_smile

denik16:06:53

@cfleming: okay thanks for clarifying. I’m sure this is far down the pipeline, but are you planning/is it possible to show test failure/success icons next to the functions they were testing? Visual studio does that.

cfleming16:06:23

@denik: Are you talking about NCrunch?

denik16:06:58

@voxdolo: thanks, that’s what I’ve been using. These days that’s the only thing that brings me to the command line during development

colin.yates16:06:10

@voxdolo that works pretty well I find and has saved my back when my REPL has gotten a bit confused.

cfleming16:06:29

@denik: Yeah, NCrunch is awesome - I’d love to do something like that in Cursive, I’ve actually been looking into that recently. I’m in contact with both the NCrunch developer and the wallaby.js one.

voxdolo16:06:55

@denik you'll have to pry my command line from my cold, dead hands 😉 I do see an upside of an autotest runner that could be integrated into Cursive's diffing though.

cfleming16:06:09

@denik: It’s probably a pretty serious piece of work, but I would love to have that myself

denik16:06:20

@cfleming: it would be a gamechanger

voxdolo16:06:47

I'm mostly editing in emacs these days, but I still run to Cursive for diffing and I keep lein test-refresh running in a terminal regardless.

gary16:06:02

since lighttable is just a clojurescript application, I should be able to open up a clojurescript repl inside of lighttable to live edit lighttable right?

jballanc18:06:34

Question for any Emacs/Spacemacs+smartparens users: how do you handle wrapping an element in [] or {}?

jballanc18:06:43

In Vim+paredit it’s as simple as <leader>w[ or <leader>w{

akiva18:06:16

It’s pretty much the same. I select a word/words and then hit s] or } or whatever.

smoke85318:06:29

(sp-pair "[" "]" :wrap "M-[")
  (sp-pair "{" "}" :wrap "M-{")

jballanc18:06:51

akiva: so that’s using spacemacs’ version of vim-surround, right?

jballanc18:06:27

hmm…I guess that could probably work most of the time 😕

jballanc18:06:56

still not quite as convenient since you need to either highlight or include a motion command

jballanc18:06:45

smoke853: ah, I didn’t realize sp-pair worked like that…interesting