Bubble
See exception flow through your Python codebase
How to install
With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.
You can also open the Extensions panel in the app and search for Bubble. The extension's id is bubble-lsp.
Don't have Forge Super yet? Download it here.
README
From the extension's repository, written by its authors and not by Mentenaz. See the source.
Bubble for Zed
See exception flow through your Python codebase directly in Zed.
What it does
Hover over Python code to see exception information:
deflines: Shows all exceptions that can escape from the function (uncaught, framework-handled, caught locally, caught by global handler)- Function calls: Shows what exceptions the callee can throw
- Everything else: No popup (no noise)
Requirements
Install bubble-analysis with LSP support in your project's Python environment:
pip install bubble-analysis[lsp]
The extension finds python3 on your PATH and runs python -m bubble.lsp.
Configuration
Override the Python binary or arguments in your Zed settings (settings.json):
{
"lsp": {
"bubble-lsp": {
"binary": {
"path": "/path/to/your/venv/bin/python",
"arguments": ["-m", "bubble.lsp"]
}
}
}
}
How it works
The extension spawns a Python LSP server that:
- Builds a program model of your codebase on first hover
- Propagates exceptions through the call graph (cached after first run)
- Returns context-sensitive hover info based on cursor position
The model rebuilds automatically when you save a file.
Supported frameworks
Exception flow analysis supports Flask, FastAPI, and CLI scripts. Framework-specific exceptions (like HTTPException) are recognized and categorized appropriately.