Fork me on GitHub
#spacemacs
<
2018-01-02
>
tomayerst18:01:33

Hi, new Spacemacs user here. I am working through Living Clojure and am working on the Serpent Talk project in Spacemacs with Cider. When I run the tests from the REPL (SPC -> m -> t -> a) I get “user-error: Buffer ‘cider-repl serpent-talk’ is not associated with a file” Could someone tell me what that means? The tests run OK from the talk.clj buffer.

jeff.terrell19:01:22

@tomayerst - It looks like that might be a known bug. When I look at the function documentation (with SPC h d k SPC m t a) I see the following:

, t a runs the command spacemacs/cider-test-run-all-tests, which is an alias for
‘spacemacs/cider-test-run-ns-tests’ in ‘../../../clojure/funcs.el’.

It is bound to M-RET t a, M-m m t a, and many ordinary text characters.

(spacemacs/cider-test-run-all-tests)

ns tests are not actually *all* tests;
        cider-test-run-project-tests would be better here, but
        there currently is a bug with the function. Replace once
        it gets fixed.

jeff.terrell19:01:52

You might try calling cider-test-run-project-tests directly, or maybe see if there's a more recent version of cider you could upgrade to.

tomayerst19:01:39

@jeff.terrell Thanks Jeff. A very gentle RTFM! 😀

tomayerst19:01:32

and thanks for the keys to look at the function docs

jeff.terrell19:01:15

Haha, didn't mean it that way, but glad it helped. simple_smile

vuuvi21:01:13

Hey guys, this is really off topic, but I just discovered artist mode! It’s really cool. Would anyone be interested in an explanation?

jeff.terrell22:01:00

I have no idea what that is; yep, I would. :raised_hand:

vuuvi23:01:17

Oh great!

vuuvi23:01:01

So I could do a more formal write up if you guys would like it. Artist mode is meant to be a way to draw in ascii in emacs!

vuuvi23:01:42

the most common usecase I could think of is drawing data flow diagrams things requiring simple boxes and lines.

vuuvi23:01:26

You can activate artist mode in any buffer, but I’d recommend opening up a new buffer to experiment

vuuvi23:01:51

once you’ve got a new buffer open, start emacs mode and then do a m-x artist-mode

vuuvi23:01:01

you should see the artist major mode activate

vuuvi23:01:21

then in emacs mode, hit c-c c-a to see a list of possible drawing modes.

vuuvi23:01:51

Once you’ve selected a ‘brush’ you can use the mouse or RET and the arrow keys to draw shapes!

vuuvi23:01:06

I’ve added some gifs and here’s a video describing artist mode in a more UML-y usecase