continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
19.26k stars 1.66k forks source link

Error getting context items from codebase: Error: {"error":{"code":"404","message": "Resource not found"}} #2541

Open Seany84 opened 1 month ago

Seany84 commented 1 month ago

Before submitting your bug report

Relevant environment info

- OS: Windows 11
- Continue version: 0.0.75
- IDE version: JetBrains Rider v2024.2.8 build #RD-242.23339.62, built on October 8, 2024
- Model: Azure OpenAI 4o, ollama qwen2.5-coder:1.5b and openai text-embedding-3-large
- config.json:

{
  "models": [
    {
      "title": "Azure OpenAI 4o",
      "provider": "openai",
      "model": "gpt-4o",
      "apiBase": "[REDACTED]",
      "engine": "gpt-4o",
      "apiVersion": "2024-05-01-preview",
      "apiType": "azure",
      "apiKey": "[REDACTED]"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Tab Autocomplete Model",
    "provider": "ollama",
    "model": "qwen2.5-coder:1.5b",
    "apiBase": "[REDACTED]:11434/"
  },
  "embeddingsProvider": {
    "provider": "openai",
    "model": "text-embedding-3-large",
    "apiBase": "[REDACTED]",
    "apiVersion": "1",
    "apiKey": "[REDACTED]",
    "apiType": "azure"
  },
  "customCommands": [
    {
      "name": "test",
      "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
      "description": "Write unit tests for highlighted code"
    }
  ],
  "contextProviders": [
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "folder",
      "params": {}
    },
    {
      "name": "codebase",
      "params": {}
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit selected code"
    },
    {
      "name": "comment",
      "description": "Write comments for the selected code"
    },
    {
      "name": "share",
      "description": "Export the current chat session to markdown"
    },
    {
      "name": "commit",
      "description": "Generate a git commit message"
    }
  ]
}

Description

Using OpenAI for model and tab completion works but the @Codebase command returns an error every time.

To reproduce

  1. Configure plugin with Azure OpenAI for model and embedding provider.
  2. Use @Codebase command

Log output

[2024-10-16T09:24:45] Error retrieving from FTS: Error: SQLITE_ERROR: no such table: fts
Patrick-Erichsen commented 1 month ago

This appears to perhaps be related to this: https://github.com/continuedev/continue/issues/2089#issuecomment-2323159863

We are also getting a somewhat similar error here: https://github.com/continuedev/continue/issues/2474

@Seany84 , could you try clearing your index? rm -rf ~/.continue/index

Seany84 commented 3 weeks ago

@Patrick-Erichsen I've deleted everything inside the ~/continue/index folder and restarted Rider, still getting the exact same error.