jeffcookio
12/30/2025, 3:13 PMbaml_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:
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 emittedVaibhav (BAML 🐑)
12/30/2025, 3:25 PMjeffcookio
12/30/2025, 7:38 PMat 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?aaronv (BAML)
12/30/2025, 8:55 PMjeffcookio
12/31/2025, 4:08 AMengine/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.aaronv (BAML)
12/31/2025, 4:36 AMaaronv (BAML)
12/31/2025, 4:36 AMjeffcookio
12/31/2025, 5:49 AMmaturin build from the integ-tests directory in the manner shown there works. I have baml_options={client} now!aaronv (BAML)
12/31/2025, 7:15 AM