Fork me on GitHub
#conjure
<
2021-01-15
>
dharrigan13:01:11

does anyone have a nice way of evalling all open buffers?

dharrigan13:01:44

:bufdo ConjureEvalBuf :)

Olical15:01:16

That'll do it!

Olical15:01:23

Glad I added those commands 😅

Chase16:01:04

Sometimes I want to disable the hud but let g:conjure#log#hud#enabled = false is giving me an error. What should I be inputting?

Olical16:01:45

That'll be v:false in vimscript, sadly 😬

Olical16:01:07

Or I think 0 might be okay too? I think v:false and v:true basically map to 0 and 1 anyway?

Chase16:01:36

I tried 0 before but the HUD still pops up so let me try v:false

Chase16:01:55

still getting the HUD. hmmm

Olical18:01:06

Hmm, I feel like this was an issue that I fixed a while back :thinking_face:

Olical18:01:14

Hmm the entire body of display-hud is wrapped in (when (config.get-in [:log :hud :enabled])

Olical18:01:27

I just tried this myself and it works for me, so maybe it was another issue?

Chase18:01:43

Yeah, I tried v:false again and it worked so I probably did something wrong the first time. Sorry about that

Chase18:01:25

I'm trying to run ConjureCljRunAlternateNsTests but it is saying no ns found. I used clj-new to create the project. So the source file is at src/chase_lambert/scratch.clj with a namespace of chase-lambert.scratch and the test is at test/chase_lambert/scratch_test.clj with the ns chase-lambert.scratch-test . The error says No namespace: chase-lambert.scratch-test found

Olical18:01:40

Hmm it works this out from the actual (ns...) form of your current buffer

Olical18:01:41

Is that core?

Olical18:01:48

Even if the file is scratch

Olical18:01:23

You need to eval the test buffer, it doesn't do that for you just in case there's side effects you don't want executed

Olical18:01:48

Maybe I should make it attempt a require at least

Chase18:01:55

Hmm, not sure what order I did things in but when I went to the test file and evaluated the buffer, then I started getting all the expected behavior.

Chase18:01:18

So now the run alternate ns tests works from scratch.clj

Chase20:01:21

I've been considering going through the SICP book sometime soon at my leisure but will stick with it's use of Scheme. I noticed Racket has an SICP dsl. Since Conjure can do Racket I am curious if you think that would work?

dave20:01:12

^I tried that recently. It... didn't work. I think the issue is that Conjure starts a Racket REPL for you in a subprocess, but for the SICP library neil/sicp, which provides #lang sicp to work, you have to run racket -i -p neil/sicp -l xrepl. It wasn't clear to me whether it's possible to get Conjure to do that when it starts the Racket REPL for you.

markx01:01:42

I’ve been using racket -i -l xrepl -I sicp as the startup command for https://github.com/Olical/vim-scheme. (so you don’t need the #lang in the file) However it doesn’t work with Conjure when I change g:conjure#client#racket#stdio#command The result of eval doesn’t appear in the repl. I assume it’s because the default racket command implicitly adds some arguments. So what arguments do I need to add for Conjure to work?

Olical08:01:33

I think it's because it prints different prompt strings which I use to identify the boundary between results. I just need to make that configurable too I think think!

dave20:01:58

And you really need #lang sicp, because otherwise all the code examples don't work because Racket itself doesn't have a bunch of functions like inc that the book assumes are in your Scheme environment.

Chase20:01:25

Fair enough. Exact info I was looking for. Thank you