I want to run my fastapi application from cursor, like I do with vscode.
Current (Cursor Version: 0.42.5)
Creating a fastapi run profile results in the following in launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: FastAPI",
"type": "python",
"request": "launch",
"module": "uvicorn",
"args": [
"main:app",
"--reload"
],
"jinja": true
}
]
}
This doesn’t work, and doesn’t launch.
Workaround the right configuration is using debugpy
for type
as follows
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: FastAPI",
"type": "debugpy",
"request": "launch",
"module": "uvicorn",
"args": [
"main:app",
"--reload"
],
"jinja": true
}
]
}
While exploring this I noticed cursor uses older python plugins than are available on vsx (Open VSX Registry is at v2024.20.0 and cursor downloads v2024.5.1)
Does anyone know what’s going on with cursor python support?