Date: December 10, 2024
Issue: Cursor’s codebase indexing was stuck at “loading…” for over a day, causing the AI assistant to hang at “planning next moves”
The workspace includes a large AWS folder (../alabut.com (staging & docs)/aws) containing:
.cursorignore FilesMain repo (/alabut-astro-renamed/.cursorignore):
node_modules/, dist/, .astro/, .cache/*.jpg, *.jpeg, *.png, *.gif, *.webp, *.heic, *.avif, *.ico, *.bmp, *.tiff, *.tif.DS_Store, Thumbs.dbAWS folder (/alabut.com (staging & docs)/aws/.cursorignore):
File: alabut-astro.code-workspace
Added search.exclude to prevent search from indexing image files:
"search.exclude": {
"**/*.jpg": true,
"**/*.jpeg": true,
"**/*.png": true,
"**/*.gif": true,
"**/*.webp": true,
"**/*.heic": true,
"**/*.avif": true,
"**/.DS_Store": true
}
Location: ~/Library/Application Support/Cursor/User/workspaceStorage/[workspace-id]/anysphere.cursor-retrieval/
Command used:
rm -rf ~/Library/Application\ Support/Cursor/User/workspaceStorage/46519d48fced6e5468479ab1faad4f15/anysphere.cursor-retrieval/*
.cursorignore Does (Important!)What it DOES:
What it DOESN’T do:
In practical terms: The AI can still work with image files when you ask, but it won’t try to “memorize” them during indexing. This is a performance optimization, not a limitation.
Main cache directory:
~/Library/Application Support/Cursor/User/workspaceStorage/
To find your workspace ID:
ls ~/Library/Application\ Support/Cursor/User/workspaceStorage/
To clear cache manually (if needed in future):
# For specific workspace
rm -rf ~/Library/Application\ Support/Cursor/User/workspaceStorage/[WORKSPACE_ID]/anysphere.cursor-retrieval/*
# For all workspaces (nuclear option)
rm -rf ~/Library/Application\ Support/Cursor/User/workspaceStorage/*/anysphere.cursor-retrieval/*
To view in Finder:
Cmd+Shift+G (Go to Folder)~/Library/Application Support/CursorCmd+Shift+. to show hidden files.cursorignore)node_modules and dist (thanks to .cursorignore)Date: December 10, 2024 (Follow-up)
After applying the initial fix, console errors revealed a deeper issue:
ERR i.with is not a function: TypeError - Core JavaScript error (appears repeatedly)ConnectError: [unauthenticated] Error - Authentication issues[KnowledgeBaseService] Error fetching git upstream URL - Git service errorsKey Finding: Even workspaces WITHOUT the AWS folder were experiencing the same hanging issue, indicating this is a Cursor application bug, not a codebase indexing problem.
i.with is not a function⚠️ WARNING: This will reset all workspace settings and may lose some state
# Quit Cursor completely first, then:
# Clear ALL workspace storage (removes all workspace-specific cache)
rm -rf ~/Library/Application\ Support/Cursor/User/workspaceStorage/*
# Or clear just codebase indexing for all workspaces (safer)
rm -rf ~/Library/Application\ Support/Cursor/User/workspaceStorage/*/anysphere.cursor-retrieval/*
# Clear Cursor's general cache
rm -rf ~/Library/Application\ Support/Cursor/Cache/*
# Clear CachedData (may require re-downloading extensions)
rm -rf ~/Library/Application\ Support/Cursor/CachedData/*
# Clear GPUCache (graphics cache, safe to clear)
rm -rf ~/Library/Application\ Support/Cursor/GPUCache/*
⚠️ WARNING: This will remove ALL Cursor settings, extensions, and workspace data
# Quit Cursor completely
# Backup anything important first, then:
rm -rf ~/Library/Application\ Support/Cursor
rm -rf ~/.cursor
If all else fails:
~/Library/Application Support/Cursor and ~/.cursor.cursorignore files are in placeTypeError or ConnectError)Date: December 10, 2024 (Final Resolution)
Key Insight: You don’t need the AWS folder in your workspace to work with those files!
Option 1: Absolute Paths
# In scripts, use full paths:
/Users/alabut/Library/Mobile\ Documents/com~apple~CloudDocs/alabut.com\ \(staging\ \&\ docs\)/aws/
Option 2: Relative Paths
# From your repo root:
../alabut.com\ \(staging\ \&\ docs\)/aws/
Option 3: Reference When Needed
alabut-astro.code-workspace.cursorignore files (still useful for any images in the main repo)