early-orange-7362
08/02/2024, 4:18 PMearly-orange-7362
08/02/2024, 4:59 PMwatchmedo auto-restart -d ./src/python -R -p '*.py' -- pants run --debug-adapter src/python/services/api/main.py
Any other thoughts?early-orange-7362
08/02/2024, 5:21 PMautoReload
in vs code
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Attach to process",
"type": "debugpy",
"request": "attach",
"connect": {
"host": "127.0.0.1",
"port": 5678
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
],
"justMyCode": true,
"redirectOutput": true,
"autoReload": {
"enable": true,
"exclude": [
"**/.git/**",
"**/__pycache__/**",
"**/.pants.d/**",
"**/.vscode/**",
"**/dist/**",
"**/scripts/**",
"**/.mypy_cache/**",
"**/site-packages/**",
"**/src/docker/**",
],
"include": [
"**/*.py",
"**/*.pyw"
]
}
}
]
}
and it tries to reload but vs code errors out with:
code reload: Unable to find module anyio._backends._asyncio to reload for path: /users/<path to src>/python/services/api/main.py
early-orange-7362
08/02/2024, 5:24 PMearly-orange-7362
08/02/2024, 5:25 PM