Fork me on GitHub
#calva
<
2019-02-08
>
pez15:02:27

@kana , I'm sorry, Calva doesn't load the namespaces it is told to run the tests for. So you'll need to load them yourself for now. (It finds them the way you are guessing there, though.)

pez15:02:48

We will fix it. Maybe even this weekend.

kana15:02:15

Okay, but what can I do right now for running tests on save? Maybe require test-module or something like this?

pez15:02:29

If you have the test namespace loaded i think tests on save for the sut should work.

dominicm15:02:00

@pez there's a flag you can send to cider for any var query which will tell it to load project namespaces.

dominicm15:02:13

I think fireplace actually refreshes the current namespace too.

pez15:02:45

Thanks, @dominicm , I'll have a look.

lspector23:02:10

Is there (or could there be) "Calva: Evaluate current top level form in REPL terminal" but a version that doesn't print all of the evaluated code?

lspector23:02:25

When applied to a selection (which it does currently work for, which is great), it could print all values (preferred, I think), or only the final one.

lspector23:02:17

I like to frequently reload the whole file and then work in the repl or evaluating things from the editor with the results going to the repl (not inline)

lspector23:02:21

Especially if the file is big, it's slow and messy to print all of the code in the repl

lspector23:02:17

Looking for something like "send result of evaluation to REPL", which I think is a more standard option (or at least the one I've always used)

pez23:02:11

@lspector Which version of Calva are you using? I thought the last one had stopped reporting the form it was evaluating.

lspector23:02:36

ooo cool... trying to figure out version

lspector23:02:29

not sure how to update.... little gear thingy doesn't seem to give the option

lspector23:02:06

oh -- it does!

lspector23:02:15

"Install another version"

pez23:02:26

Interesting. That is the latest published version. Maybe I am not following what you are suggesting…

lspector23:02:45

oh but yeah, it's current

lspector23:02:29

what i'm looking for is a way to send the evaluated result of the selected text to the REPL, without sending the code

lspector23:02:05

I want to evaluate it, and see printed and returned values in the REPL, but not see all of the code also in the REPL

lspector23:02:00

thanks! downloading though it will take a while because i'm on a train

pez23:02:08

That version still shows what is evaluated, but I think it makes more sense.