https://www.boundaryml.com logo
🟡 Issue with BAML language server crashing
# questions
a
hey, I'm unable to execute the unit tests. The BAML language server was crashing. After a few restarts the server seems to be up running fine now. I'm using the version 0.205.0
a
if that happens again, try going to the OUTPUT tab > Baml Language Server
and you can paste the logs here
a
I didn't see any logs in the output while the crash was happening..
the run tests buttons are not showing up now
a
do you have time to screen share by any chance?
i can help debug that way
a
oh yes
sorry i'm just noticing the message
it seems like the office hours are closed for tomorrow -- we can try debugging tomorrow
thank you!
a
sounds good we can try tomorrow
a
I'm noticing that I can run tests for another project but occasionally i see the following error:
Copy code
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 IB (https://file+.vscode-resource.vscode-cdn.net/Users/akhaled/.vscode/extensions/boundary.baml-extension-0.205.0-darwin-arm64/dist/playground/dist/assets/baml_schema_build.js:2:54832)
    at wasm://wasm/03453d76:wasm-function[14351]:0xb76473
    at wasm://wasm/03453d76:wasm-function[14353]:0xb76490
    at wasm://wasm/03453d76:wasm-function[5390]:0x9fbd6a
    at q.client_name (https://file+.vscode-resource.vscode-cdn.net/Users/akhaled/.vscode/extensions/boundary.baml-extension-0.205.0-darwin-arm64/dist/playground/dist/assets/baml_schema_build.js:2:15733)
    at U2I (https://file+.vscode-resource.vscode-cdn.net/Users/akhaled/.vscode/extensions/boundary.baml-extension-0.205.0-darwin-arm64/dist/playground/dist/assets/index.js:849:4548)
    at h2 (https://file+.vscode-resource.vscode-cdn.net/Users/akhaled/.vscode/extensions/boundary.baml-extension-0.205.0-darwin-arm64/dist/playground/dist/assets/index.js:49:34204)
    at J2 (https://file+.vscode-resource.vscode-cdn.net/Users/akhaled/.vscode/extensions/boundary.baml-extension-0.205.0-darwin-arm64/dist/playground/dist/assets/index.js:49:62992)
    at No (https://file+.vscode-resource.vscode-cdn.net/Users/akhaled/.vscode/extensions/boundary.baml-extension-0.205.0-darwin-arm64/dist/playground/dist/assets/index.js:49:73602)
    at Uo (https://file+.vscode-resource.vscode-cdn.net/Users/akhaled/.vscode/extensions/boundary.baml-extension-0.205.0-darwin-arm64/dist/playground/dist/assets/index.js:49:107783)
a
We fixed that issue in 0.206.1
a
cool!
thanks!
a
actually the issue might still be sort of present, let me know if you run into it again
m
Hi at @aaronv (BAML) I am facing a slightly different issue with the language server:
Copy code
[Info  - 7:35:25 PM] Connection to server got closed. Server will restart.
Playground started on: http://localhost:3700
Proxy started on: http://localhost:3701
Playground server started
   0.000015667s  INFO main language_server::server: --- workspace folders: None
   0.000031750s  WARN main language_server::server: No workspace(s) were provided during initialization. Using the current working directory as a default workspace...
   0.001188208s  INFO tokio-runtime-worker playground_server::server: Sending request to GitHub API...
   0.001348333s ERROR tokio-runtime-worker playground_server::server: Failed to prepare playground web UI: Failed to fetch release metadata: error sending request for url (https://api.github.com/repos/BoundaryML/baml/releases/tags/0.207.1). Serving error page instead.
Not sure what to do about this.
a
@baml-sam
when is this happening @mrkaiser00 ? on a new project? does reloading work?
m
On startup. Reloading does not work. I am using one of the example baml files from prompt fiddle
b
Those are red herring issues in vscode Starting a separate thread to discuss this: https://discord.com/channels/1119368998161752075/1253172394345107466/1417662873089347784