Documentation Index
Fetch the complete documentation index at: https://docs.codeflash.ai/llms.txt
Use this file to discover all available pages before exploring further.
Extension Troubleshooting
Solutions for common issues with the Codeflash VS Code extension.Common Issues
Extension not activating
Extension not activating
Symptoms: No Codeflash icon in sidebar, no “optimize” hints appearing.Solutions:
- Check Python file is open — The extension activates when you open a
.pyfile - Verify Python extension — Ensure Microsoft Python extension is installed
- Check Output logs — Go to
View → Outputand select “Codeflash” from the dropdown - Reload extension — Restart VS Code or reload the window
No 'optimize' hints appearing
No 'optimize' hints appearing
Symptoms: Extension is active but no hints above functions.Solutions:
- Wait for analysis — The extension needs time to analyze your code
- Check module-root — Functions must be inside your
module-rootdirectory (checkpyproject.toml) - Run codeflash init — Ensure project is initialized: run
codeflash initin terminal - Check function requirements — Functions need a
returnstatement and shouldn’t be properties
Python environment issues
Python environment issues
Symptoms: “No Python interpreter selected”, “Codeflash not installed”, or wrong Python version errors.Solutions:
-
Select the correct Python interpreter:
- Press
Ctrl+Shift+P/Cmd+Shift+P - Type “Python: Select Interpreter”
- Choose the environment where Codeflash is installed
- Press
-
Verify Codeflash is installed in that environment:
-
Install Codeflash if missing:
Connection or LSP errors
Connection or LSP errors
Symptoms: “Failed to connect” or language server errors.Solutions:
- Reload extension — Restart VS Code or reload the window
- Check network — Ensure you can reach
app.codeflash.ai - Verify API key — Check your API key is valid
- View logs — Check
View → Output → Codeflashfor details
Using Cursor or custom VS Code build
Using Cursor or custom VS Code build
Symptoms: Extension doesn’t install from Marketplace.Solution: Install via VSIX instead:
- Download from Open VSX
- Install using VS Code’s extension installation feature
- Restart the editor
Optimization stuck or not completing
Optimization stuck or not completing
Symptoms: Optimization appears to hang or never finishes.Solutions:
- Check sidebar status — Look for error messages in the Codeflash sidebar
- Check network — Ensure stable internet connection
- View logs — Check
View → Output → Codeflashfor errors - Clear tasks — Use the sidebar to clear completed or failed tasks
- Reload extension — Restart VS Code or reload the window
API key issues
API key issues
Symptoms: Authentication errors, “invalid API key” messages.Solutions:
- Verify API key — Check your key at app.codeflash.ai
- Re-enter key — The extension may prompt you to re-enter your API key
- Check environment variable — If using
CODEFLASH_API_KEY, ensure it’s set correctly - Reload extension — Restart VS Code or reload the window
Viewing Logs
For detailed debugging information:Requirements Checklist
If you’re having issues, verify these requirements:System Requirements
System Requirements
- VS Code 1.94.0+ (or Cursor/Windsurf)
- Python 3.9+ installed
- Git installed and repository initialized
- Microsoft Python extension installed
Project Requirements
Project Requirements
- Project has been initialized with
codeflash init -
pyproject.tomlexists with[tool.codeflash]section -
module-rootis correctly configured - Python files are inside the
module-rootdirectory
Authentication
Authentication
- Valid Codeflash API key
- API key entered in extension or set as environment variable
- Network access to
app.codeflash.ai
Still Need Help?
If you’re still experiencing issues:- Discord — Join our community for real-time help
- GitHub Issues — Report bugs with detailed reproduction steps
- Documentation — Full docs for reference
When reporting issues, please include:
- VS Code version
- Extension version
- Python version
- Relevant log output from the Output panel
- Steps to reproduce the issue
Next Steps
Overview
Back to extension overview
Features
Learn about extension features
Configuration
Customize extension settings