Description
Every 5-10 minutes, cursor will crash because the window[num](filename - repo name) exceed 5GB of memory usage. (this is the sole process that eats up the memory)
I confirmed that it is not because of extensions after disabling.
I’ve also added pretty exhaustive ignore rules in pyproject.toml and settings.json
Stack information
- using uv and poetry for dependency management
- I have the Ruff, Pylance, Python, Rainbow CSV extensions running.
{
"[python]": {
"editor.formatOnSave": true,
},
"python.analysis.extraPaths": ["./src"],
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit",
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
"[json]": {
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 80
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// Exclusion paths for python server
"python.analysis.exclude": [
"**/__pycache__",
".venv/**",
"tmp/**",
".git/**",
"design/**",
"*.log",
"*.pdf",
"*.json"
],
// Optimize python analysis
"python.analysis.diagnosticMode": "workspace",
"python.analysis.indexing": true,
"python.analysis.autoImportCompletions": true,
"python.analysis.completeFunctionParens": false,
"python.analysis.autoSearchPaths": false,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/.venv/**": true,
"**/tmp/**": true,
"**/__pycache__/**": true,
"**/*.log": true,
"**/*.pdf": true,
"**/*.json": true
},
}
pyproject.toml (partial)
[tool.ruff]
select = ["I"]
line-length = 88
exclude = [
".git",
".venv",
"__pycache__",
"build",
"dist",
"tmp",
"fdds",
"design",
"*.log",
"*.pdf",
"*.json",
]
ignore = ["E501"] # Line too long
OS/App Info
- M1 Macbook Pro 16GB RAM
- Cursor info
Version: 0.45.10
VSCode Version: 1.96.2
Commit: 15746f716efa868ebac16b1675bad2714d6c27d0
Date: 2025-02-05T06:20:28.304Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 23.5.0