VSCode Playground
General debugging strategy
-
Check Discord (#announcements channel) / Github for any known issues
-
Close the playground and reopen it
-
Try reloading the entire window by pressing
Ctrl + Shift + P
orCmd + Shift + P
and typingDeveloper: Reload Window
-
Ensure your VSCode Extension for BAML is up-to-date (Cursor users must update manually)
-
Check the BAML extension logs
-
Open the
Output
panel in VSCode (pressCtrl + Shift + U
orCmd + Shift + U
) -
Find the dropdown currently showing
Main
, and selectBAML Language Server
from the dropdown -
Share these logs with us when you reach out to us
-
If you continue to have issues, please let us know on Discord or file an issue on Github.
Common Issues
No code lens in BAML files
This can happen in two cases:
-
You have syntax error in some
.baml
file. You can check the error in theProblems
tab in VSCode or running thegenerate
command in the terminal (See Generate) -
BAML extension is broken. Please try the tools above!
BAML extension is not working
Tests hanging
We’ve seen sparse repros of this, but closing the playground and reopening it should fix it.
Tests failing to run
You can debug the actual network request being made by BAML by opening developer tools:
BAML Client Generation Disabled
This means that either:
-
your
generator
clause in your BAML file is out of sync with the version of the BAML extension you have installed. See Generate for more details, or -
one of your
generator
clauses setsoutput_type "rest/openapi"
, which means you need to usebaml-cli dev
to run the generator