https://www.boundaryml.com logo
a
i think i figured this out -- releasing a patch now
b
Specifically the issue is: if you toggle the test sidebar closed while a test is running, it triggers "recursive object use detected unsafe Rust usage" something like that
t
Error message: "recursive use of an object detected which would lead to unsafe aliasing in rust" Error: recursive use of an object detected which would lead to unsafe aliasing in rust at AQ (https://file+.vscode-resource.vscode-cdn.net/Users/joshyim/.windsurf/extensions/boundary.baml-extension-0.203.0-darwin-arm64/dist/playground/dist/assets/baml_schema_build.js:2:54913) at wasm://wasm/032df126:wasm-function[13854]:0xb068b2 at wasm://wasm/032df126:wasm-function[13856]:0xb068cf at wasm://wasm/032df126:wasm-function[5203]:0x99b6e8 at q.client_name (https://file+.vscode-resource.vscode-cdn.net/Users/joshyim/.windsurf/extensions/boundary.baml-extension-0.203.0-darwin-arm64/dist/playground/dist/assets/baml_schema_build.js:2:15817) at j2I (https://file+.vscode-resource.vscode-cdn.net/Users/joshyim/.windsurf/extensions/boundary.baml-extension-0.203.0-darwin-arm64/dist/playground/dist/assets/index.js:849:4548) at Y2 (https://file+.vscode-resource.vscode-cdn.net/Users/joshyim/.windsurf/extensions/boundary.baml-extension-0.203.0-darwin-arm64/dist/playground/dist/assets/index.js:49:34204) at g2 (https://file+.vscode-resource.vscode-cdn.net/Users/joshyim/.windsurf/extensions/boundary.baml-extension-0.203.0-darwin-arm64/dist/playground/dist/assets/index.js:49:62992) at ho (https://file+.vscode-resource.vscode-cdn.net/Users/joshyim/.windsurf/extensions/boundary.baml-extension-0.203.0-darwin-arm64/dist/playground/dist/assets/index.js:49:73602) at Bo (https://file+.vscode-resource.vscode-cdn.net/Users/joshyim/.windsurf/extensions/boundary.baml-extension-0.203.0-darwin-arm64/dist/playground/dist/assets/index.js:49:107783)
As @baml-sam mentioned, it happend only while test is still running, and you try open/close side bar - not just BAML test, but even VSCode sidebar - the error is triggered.
Good thing it's only an UI bug.
g
@the_joshy_90210 fixed & merged into canary, thanks! https://github.com/BoundaryML/baml/pull/2329
t
Thanks @gsus! You rock.