does anyone have a nice way of evalling all open buffers?
:bufdo ConjureEvalBuf
:)
That'll do it!
Glad I added those commands 😅
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?
That'll be v:false
in vimscript, sadly 😬
Or I think 0
might be okay too? I think v:false
and v:true
basically map to 0
and 1
anyway?
I tried 0
before but the HUD still pops up so let me try v:false
still getting the HUD. hmmm
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
Hmm it works this out from the actual (ns...)
form of your current buffer
Is that core?
Even if the file is scratch
Oh I see
Sorry
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
Maybe I should make it attempt a require at least
Hmm, I feel like this was an issue that I fixed a while back :thinking_face:
Hmm the entire body of display-hud
is wrapped in (when (config.get-in [:log :hud :enabled])
I just tried this myself and it works for me, so maybe it was another issue?
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.
So now the run alternate ns tests works from scratch.clj
Yeah, I tried v:false again and it worked so I probably did something wrong the first time. Sorry about that
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?
^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.
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?
@olical ☝️ 🙏
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!
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.
Fair enough. Exact info I was looking for. Thank you