continue icon indicating copy to clipboard operation
continue copied to clipboard

Indexing error and can not rebuild

Open licongy opened this issue 5 months ago • 10 comments

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue version: 1.1.34
- IDE version: VSCode 1.100.0 (Universal)
- Model: Transformers.js (Build-In model for embed) 
- config:
  
%YAML 1.1
---
name: assistant
version: 0.0.1
schema: v1

openai_defaults: &openai
  provider: openai
  apiKey: *

anthropic_defaults: &anthropic
  provider: anthropic
  apiKey: *

gemini_defaults: &gemini
  provider: gemini
  apiKey: *

option_defaults: &options
  defaultCompletionOptions:
    contextLength: 1047576
    maxTokens: 32768
    temperature: 1
  useLegacyCompletionsEndpoint: false

chat_option_defaults: &chat_options
  chatOptions:
    baseSystemMessage: >-
      *

models:
  - name: Claude 3.7 Sonnet ($15)
    <<: [*anthropic, *chat_options]
    model: claude-3-7-sonnet-latest
    defaultCompletionOptions:
      contextLength: 1047576
      maxTokens: 64000
      temperature: 1

  - name: Gemini 2.5 Pro
    <<: [*gemini, *options, *chat_options]
    model: gemini-2.5-pro-preview-05-06

  - name: Gemini 2.5 Flash
    <<: [*gemini, *options, *chat_options]
    model: gemini-2.5-flash-preview-04-17

  - name: GPT-o1 ($60)
    <<: [*openai, *options, *chat_options]
    model: o1-2024-12-17
  - name: GPT-o3 ($40)
    <<: [*openai, *options, *chat_options]
    model: o3-2025-04-16
  - name: GPT-o1 mini ($4.4)
    <<: [*openai, *options, *chat_options]
    model: o1-mini-2024-09-12
  - name: GPT-o3 mini ($4.4)
    <<: [*openai, *options, *chat_options]
    model: o3-mini-2025-01-31
  - name: GPT-o4 mini ($4.4)
    <<: [*openai, *options, *chat_options]
    model: o4-mini-2025-04-16
  - name: GPT-4.1 ($8)
    <<: [*openai, *options, *chat_options]
    model: gpt-4.1-2025-04-14
  - name: GPT-4.1 mini ($1.6)
    <<: [*openai, *options, *chat_options]
    model: gpt-4.1-mini-2025-04-14
  - name: GPT-4.1 nano ($0.4)
    <<: [*openai, *options, *chat_options]
    model: gpt-4.1-nano-2025-04-14
  - uses: ollama/qwen2.5-coder-1.5b

context:
  - provider: code
  - provider: docs
  - provider: diff
  - provider: terminal
  - provider: problems
  - provider: folder
  - provider: codebase

mcpServers:
  - uses: anthropic/memory-mcp
  - uses: exa/exa-mcp
    with:
      EXA_API_KEY: *
    override:
      args:
        - -y
        - exa-mcp-server
        - --tools=web_search,research_paper_search,twitter_search

Description

My indexes don't work properly and I can't rebuild them. I've tried Continue: Rebuild codebase indexes, Continue: Codebase Force Re-index and Continue: Docs Force Re-index and it all failed.

To reproduce

Don't know how to reproduce.

I have indexing working fine in two other projects.

In this project where indexing is not working, there are 15 larger markdown project files (50-80kb each, with a multi-level structure, but some level with a large amount of content, above 10k tokens). I'm not sure if this is the cause of the issue.

Also there were originally 10 .docx files that were previously removed.

Log output

[Extension Host] error when indexing:  Error: SQLITE_ERROR: no such table: tag_catalog
--> in Database#prepare('SELECT path, cacheKey, lastUpdated FROM tag_catalog\n' +
  '    WHERE dir = ? AND branch = ? AND artifactId = ?', 'file:///Users/username/docspace/ProjectName', 'master', 'chunks', [Function (anonymous)])
	at new Promise (<anonymous>)
log.ts:460   ERR [Extension Host] Error: SQLITE_IOERR: disk I/O error
--> in Database#exec('CREATE TABLE IF NOT EXISTS code_snippets (\n' +
  '        id INTEGER PRIMARY KEY,\n' +
  '        path TEXT NOT NULL,\n' +
  '        cacheKey TEXT NOT NULL,\n' +
  '        content TEXT NOT NULL,\n' +
  '        title TEXT NOT NULL,\n' +
  '        signature TEXT,\n' +
  '        startLine INTEGER NOT NULL,\n' +
  '        endLine INTEGER NOT NULL\n' +
  '    )', [Function (anonymous)])
	at new Promise (<anonymous>)
	at async Promise.all (index 0)
error @ log.ts:460
console.ts:137 [Extension Host] Error: SQLITE_IOERR: disk I/O error
--> in Database#exec('CREATE TABLE IF NOT EXISTS code_snippets (\n' +
  '        id INTEGER PRIMARY KEY,\n' +
  '        path TEXT NOT NULL,\n' +
  '        cacheKey TEXT NOT NULL,\n' +
  '        content TEXT NOT NULL,\n' +
  '        title TEXT NOT NULL,\n' +
  '        signature TEXT,\n' +
  '        startLine INTEGER NOT NULL,\n' +
  '        endLine INTEGER NOT NULL\n' +
  '    )', [Function (anonymous)])
	at new Promise (<anonymous>)
	at async Promise.all (index 0)
[Extension Host] vscode-redhat-telemetry 0.8.0 (redhat.vscode-yaml): Updating vscode-redhat-telemetry configuration from https://raw.githubusercontent.com/redhat-developer/vscode-redhat-telemetry/main/src/config/telemetry-config.json
console.ts:137 [Extension Host] error when indexing:  Error: SQLITE_IOERR: disk I/O error
--> in Database#exec('CREATE TABLE IF NOT EXISTS tag_catalog (\n' +
  '            id INTEGER PRIMARY KEY AUTOINCREMENT,\n' +
  '            dir STRING NOT NULL,\n' +
  '            branch STRING NOT NULL,\n' +
  '            artifactId STRING NOT NULL,\n' +
  '            path STRING NOT NULL,\n' +
  '            cacheKey STRING NOT NULL,\n' +
  '            lastUpdated INTEGER NOT NULL\n' +
  '        )', [Function (anonymous)])
	at new Promise (<anonymous>)
log.ts:460   ERR [Extension Host] Error: SQLITE_IOERR: disk I/O error
--> in Database#exec('CREATE TABLE IF NOT EXISTS code_snippets (\n' +
  '        id INTEGER PRIMARY KEY,\n' +
  '        path TEXT NOT NULL,\n' +
  '        cacheKey TEXT NOT NULL,\n' +
  '        content TEXT NOT NULL,\n' +
  '        title TEXT NOT NULL,\n' +
  '        signature TEXT,\n' +
  '        startLine INTEGER NOT NULL,\n' +
  '        endLine INTEGER NOT NULL\n' +
  '    )', [Function (anonymous)])
	at new Promise (<anonymous>)
	at async Promise.all (index 0)
error @ log.ts:460
console.ts:137 [Extension Host] Error: SQLITE_IOERR: disk I/O error
--> in Database#exec('CREATE TABLE IF NOT EXISTS code_snippets (\n' +
  '        id INTEGER PRIMARY KEY,\n' +
  '        path TEXT NOT NULL,\n' +
  '        cacheKey TEXT NOT NULL,\n' +
  '        content TEXT NOT NULL,\n' +
  '        title TEXT NOT NULL,\n' +
  '        signature TEXT,\n' +
  '        startLine INTEGER NOT NULL,\n' +
  '        endLine INTEGER NOT NULL\n' +
  '    )', [Function (anonymous)])
	at new Promise (<anonymous>)
	at async Promise.all (index 0)
bws @ console.ts:137
console.ts:137 [Extension Host] error when indexing:  Error: SQLITE_IOERR: disk I/O error
--> in Database#exec('CREATE TABLE IF NOT EXISTS tag_catalog (\n' +
  '            id INTEGER PRIMARY KEY AUTOINCREMENT,\n' +
  '            dir STRING NOT NULL,\n' +
  '            branch STRING NOT NULL,\n' +
  '            artifactId STRING NOT NULL,\n' +
  '            path STRING NOT NULL,\n' +
  '            cacheKey STRING NOT NULL,\n' +
  '            lastUpdated INTEGER NOT NULL\n' +
  '        )', [Function (anonymous)])
	at new Promise (<anonymous>)
log.ts:460   ERR [Extension Host] Error: SQLITE_IOERR: disk I/O error
--> in Database#exec('CREATE TABLE IF NOT EXISTS code_snippets (\n' +
  '        id INTEGER PRIMARY KEY,\n' +
  '        path TEXT NOT NULL,\n' +
  '        cacheKey TEXT NOT NULL,\n' +
  '        content TEXT NOT NULL,\n' +
  '        title TEXT NOT NULL,\n' +
  '        signature TEXT,\n' +
  '        startLine INTEGER NOT NULL,\n' +
  '        endLine INTEGER NOT NULL\n' +
  '    )', [Function (anonymous)])
	at new Promise (<anonymous>)
	at async Promise.all (index 0)
error @ log.ts:460
error @ log.ts:565
error @ logService.ts:51
wws @ remoteConsoleUtil.ts:58
$logExtensionHostMessage @ mainThreadConsole.ts:38
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1208
fire @ event.ts:1239
fire @ ipc.net.ts:652
l.onmessage @ localProcessExtensionHost.ts:378
console.ts:137 [Extension Host] Error: SQLITE_IOERR: disk I/O error
--> in Database#exec('CREATE TABLE IF NOT EXISTS code_snippets (\n' +
  '        id INTEGER PRIMARY KEY,\n' +
  '        path TEXT NOT NULL,\n' +
  '        cacheKey TEXT NOT NULL,\n' +
  '        content TEXT NOT NULL,\n' +
  '        title TEXT NOT NULL,\n' +
  '        signature TEXT,\n' +
  '        startLine INTEGER NOT NULL,\n' +
  '        endLine INTEGER NOT NULL\n' +
  '    )', [Function (anonymous)])
	at new Promise (<anonymous>)
	at async Promise.all (index 0)

licongy avatar May 11 '25 11:05 licongy