https://www.boundaryml.com logo
0.216 when? I was banging my head into
# general
j
0.216 when? I was banging my head into wall wondering why
baml_options={"client": "XYZ"}
wasn't working and then I saw "Added in 0.216". Trying to build the Rust code now so I can generate a client from it, but getting this build failure:
Copy code
error: hiding a lifetime that's elided elsewhere is confusing
   --> baml-lib/baml-types/src/media.rs:110:22
    |
110 |     pub fn extension(&self) -> Option<Cow<str>> {
    |                      ^^^^^            ^^^^^^^^ the same lifetime is hidden here
    |                      |
    |                      the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
    = note: `-D mismatched-lifetime-syntaxes` implied by `-D elided-named-lifetimes`
    = help: to override `-D elided-named-lifetimes` add `#[allow(mismatched_lifetime_syntaxes)]`
help: use `'_` for type paths
    |
110 |     pub fn extension(&self) -> Option<Cow<'_, str>> {
    |                                           +++

error: hiding a lifetime that's elided elsewhere is confusing
   --> baml-lib/baml-types/src/baml_value.rs:440:17
    |
440 |     pub fn iter(&self) -> BamlValueWithMetaIterator<T> {
    |                 ^^^^^     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here
    |                 |
    |                 the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
    |
440 |     pub fn iter(&self) -> BamlValueWithMetaIterator<'_, T> {
    |                                                     +++

warning: `baml-types` (lib) generated 1 warning (1 duplicate)
error: could not compile `baml-types` (lib) due to 2 previous errors; 1 warning emitted
v
sorry for that! Release should be going out today! @aaronv (BAML)
j
Thanks. I was able to build a Python wheel from source but it crashes when I try to run `baml generate`:
Copy code
at 12:06:50 ❯ uv run --active baml generate
2025-12-30T12:31:01.022 [BAML INFO] Generating clients with CLI version: 0.215.2

thread '<unnamed>' (1341670) panicked at generators/languages/python/src/generated_types.rs:456:22:
Unknown type: generators_python::generated_types::class::ClassPy<'_>
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Traceback (most recent call last):
  File "/home/jeff/.virtualenvs/civit-asstd/bin/baml", line 10, in <module>
    sys.exit(invoke_runtime_cli())
             ~~~~~~~~~~~~~~~~~~^^
pyo3_runtime.PanicException: Unknown type: generators_python::generated_types::class::ClassPy<'_>
Am I missing something obvious here?
a
what steps did you take to build it from source? I'm going to release in around 2-3 hours!
j
I built
engine/language_client_python
with
uv build --wheel .
and installed it. Tried several other build commands including building the whole Cargo workspace in case some component was missed,
uv pip install -e .
, etc. I don't really see any good docs on how to get a usable build artifact from HEAD. I haven't looked at the GitHub CI yet, it probably would show the steps I'm missing.
a
there's a contributing.md file that explains how to use maturin to install the dependency
from source
j
Thanks, calling
maturin build
from the
integ-tests
directory in the manner shown there works. I have
baml_options={client}
now!
a
2 Views