https://www.boundaryml.com logo
baml_src hot reload
# suggestions
r
I REALLY need BAML to auto
baml-cli generate
whenever files in
baml_src/
change. I am going to hack a script to do it but it should be a feature. You think your edit had no effect because you haven't rebuilt! Such an easy mistake to make.
baml-cli generate -d
for daemon would do it
b
The vscode extension handles this! If it's not doing it you might have disabled it? Alternatively
baml-cli dev
will also do this
r
Thanks!
The plugin does it inside VSCode but not in baml_client. At least that's how it seems.
p
This makes no sense - every time a file is saved in the playground, all files in baml_client automatically regenerate. Is that not happening in your case?
a
can you try deleting the baml_client, and save a baml_src file in vscode, and see if baml_client reappears? We always regenerate the baml_client. You should see a notification pop up that says 'baml client generated'
r
The plugin doesn’t do it, no. I don’t think.
Okay, maybe I’m mistaken
a
It may be your generator block has an error or is runninf a diff version than the extension
r
I think I was just wrong.
b
No worries, let us know if it happens again!
Generation does get disabled if one of your baml files is malformed, so if you were working on file B and didn’t finish up then switched to file A that might’ve caused it as well
i
I am just finishing up on something that auto generates various enums, functions etc. I suppose I will need to trigger that baml-cli generate.
r
Well, no the plugin should do it for you.