cursor icon indicating copy to clipboard operation
cursor copied to clipboard

Codebase doesn't work when repository is indexed

Open NaniSladek opened this issue 1 year ago • 0 comments

Codebase Search Issue

Problem Description

My codebase doesn't match any files when the repo is indexed, and search queries are empty. This issue persists even with Composer.

  • Duration: Occurring for approximately 3 days
  • Exact start time: Unknown

Attempted Solutions

  1. Disabled optional/beta features
  2. Signed out and back in
  3. Performed a fresh install, including deletion of Cursor file data

None of these solutions resolved the issue.

System Information

  • Device: Macbook Air M1 2020
  • OS: MacOS 15.0 (24A335)
  • System Firmware Version: 11881.1.1
  • OS Loader Version: 11881.1.1
  • Cursor version: 0.41.3

Reproducing the Issue

Scenario 1: Repo indexed, using Codebase with CMD+ENTER

  • Result: No files found
  • Additional issues (on subsequent attempts):
    • Infinite loading when gathering chunks using conversational history
    • Infinite loading when reranking chunks

Codebase search issue

Log Output

2024-10-03 13:29:25.047 [info] Finished indexing repository.
2024-10-03 13:29:25.048 [info] Indexing job successfully done or aborted.
2024-10-03 13:29:36.958 [info] Search by sha took 18.695667028427124ms for query ""
2024-10-03 13:29:36.974 [info] Search by message took 36.204708099365234ms for query ""
2024-10-03 13:29:39.597 [info] Search by sha took 19.09000015258789ms for query ""
2024-10-03 13:29:39.605 [info] Search by message took 27.179832935333252ms for query ""
2024-10-03 13:29:39.608 [info] Search by sha took 18.671541929244995ms for query ""
2024-10-03 13:29:39.612 [info] Search by message took 22.852874994277954ms for query ""
2024-10-03 13:29:42.937 [info] Search by sha took 18.568833112716675ms for query ""
2024-10-03 13:29:42.942 [info] Search by message took 25.207458019256592ms for query ""
2024-10-03 13:29:50.401 [info] Search by sha took 18.8197500705719ms for query ""
2024-10-03 13:29:50.405 [info] Search by message took 23.956832885742188ms for query ""

Scenario 2: Repo indexed, using Codebase with @Codebase mention

  • Issues:
    • Infinite loading when gathering chunks using conversational history
    • Infinite loading when reranking chunks
    • Model hallucination, working with non-existent files

Codebase mention issue

Log Output

2024-10-03 13:46:41.990 [info] Search by sha took 32.924582958221436ms for query ""
2024-10-03 13:46:42.011 [info] Search by message took 54.93787503242493ms for query ""

Scenario 3: Index deleted, using Codebase with CMD+ENTER

  • Result: Chat with codebase now works as expected

Codebase working after index deletion

  • @Codebase mention also works correctly

Codebase mention working

NaniSladek avatar Oct 03 '24 12:10 NaniSladek