continue icon indicating copy to clipboard operation
continue copied to clipboard

Indexing fails in IntelliJ

Open florian-hansen-mw opened this issue 2 years ago • 4 comments

Before submitting your bug report

Relevant environment info

- OS: MacOS
- Continue version: 0.0.81
- IDE version: 2024.2.4
- Model: nomic-embed-text:latest
- config.json:
  
{
  "models": [
    {
      "apiKey": "<>",
      "deployment": "gpt-4o",
      "apiBase": "<>",
      "apiType": "azure",
      "model": "gpt-4o",
      "title": "GPT-4o",
      "systemMessage": "You are an expert software developer. You give helpful and concise responses. Omit greetings.",
      "provider": "azure",
      "apiVersion": "2024-08-01-preview"
    }
  ],
  "tabAutocompleteModel": {
    "title": "codellama13b",
    "provider": "ollama",
    "model": "codellama:13b"
  },
  "embeddingsProvider": {
    "title": "nomic",
    "provider": "ollama",
    "model": "nomic-embed-text"
  },
  "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"
    }
  ],
  "allowAnonymousTelemetry": false
}

Description

After update to the latest version of continue plugin, it can not successfully index the codebase. The logs show this error a lot

[2024-11-13T14:19:01] LanceDBIndex, skipping /Users/<>/.continue/index/lancedb/Users<>.continueindexNONEvectordbOllamaEmbeddingsProvidernomic-embed-textlatest.lance/data/60a98c79-61fc-4c24-835b-92d6553970ea.lance: Error: did not chunk properly

[2024-11-13T14:18:58] LanceDBIndex, skipping /Users/<>/.continue/index/lancedb/Users<>DocumentsProjekte<>.ideamainvectordbOllamaEmbeddingsProvidernomic-embed-textlatest.lance/data/008be3ed-b4d2-4502-8b64-d95afaa8fb3b.lance: Error: did not chunk properly

I have tried both a local ollama model and a cloud embedding model (which was working perfectly fine before the update). Both show the same error. I have also deleted the ~/.continue/index/ folder and tried to reindex, also did not work.

To reproduce

  1. configure indexing
  2. open project
  3. hit index in the continue settings

Log output


[2024-11-13T14:41:58] LanceDBIndex, skipping /Users/<>/.continue/index/index.sqlite-wal: Error: did not chunk properly 
[2024-11-13T14:41:58] LanceDBIndex, skipping /Users/<>/.continue/index/index.sqlite-shm: Error: did not chunk properly 

[2024-11-13T14:42:07] LanceDBIndex, skipping /Users/<>/.continue/index/lancedb/Users<>LibraryApplicationSupportJetBrainsIntelliJIdea2024.2workspaceNONEvectordbOllamaEmbeddingsProvidernomic-embed-textlatest.lance/data/45260cde-cd07-4627-9f10-b687f3b1d354.lance: Error: did not chunk properly 

[2024-11-13T14:19:01] LanceDBIndex, skipping /Users/<>/.continue/index/lancedb/Users<>.continueindexNONEvectordbOllamaEmbeddingsProvidernomic-embed-textlatest.lance/data/60a98c79-61fc-4c24-835b-92d6553970ea.lance: Error: did not chunk properly 

[2024-11-13T14:18:58] LanceDBIndex, skipping /Users/<>/.continue/index/lancedb/Users<>DocumentsProjekte<>.ideamainvectordbOllamaEmbeddingsProvidernomic-embed-textlatest.lance/data/008be3ed-b4d2-4502-8b64-d95afaa8fb3b.lance: Error: did not chunk properly

florian-hansen-mw avatar Nov 13 '24 14:11 florian-hansen-mw

@florian-hansen-mw what are the effects of this in Continue, other than the logs? For example, when you use @ codebase what happens? And how does the indexing progress bar behave in the more page when you start indexing?

sestinj avatar Nov 14 '24 16:11 sestinj

@sestinj Indexing gets disabled. in ~/.continue a new file is created .continuerc.json:

{ "disableIndexing": true }

florian-hansen-mw avatar Nov 15 '24 08:11 florian-hansen-mw

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Mar 03 '25 04:03 github-actions[bot]

This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

github-actions[bot] avatar Mar 14 '25 02:03 github-actions[bot]