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
18.47k stars 1.53k forks source link

Jetbrains Extension (EAP v0.0.76) breaks chat / embeddings for all projects #2600

Open chubshaun opened 3 days ago

chubshaun commented 3 days ago

Before submitting your bug report

Relevant environment info

- OS: Mac Monterey
- Continue version: v0.0.76
- IDE version: WebStorm 2024.2.3
- Model: Any
- config.json:

{
  "models": [
    {
      "model": "claude-3-5-sonnet-20240620",
      "contextLength": 200000,
      "title": "Claude 3.5 Sonnet",
      "apiKey": "sk-***********",
      "provider": "anthropic"
    }
  ],
  "allowAnonymousTelemetry": false,
  "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"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Starcoder2 3b",
    "provider": "ollama",
    "model": "starcoder2:3b"
  },
  "contextProviders": [
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff",
      "params": {}
    },
    {
      "name": "terminal",
      "params": {}
    },
    {
      "name": "problems",
      "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": "cmd",
      "description": "Generate a shell command"
    },
    {
      "name": "commit",
      "description": "Generate a git commit message"
    }
  ],
  "embeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text"
  },
  "reranker": {
    "name": "free-trial"
  }
}

Description

Continue Chat sidebar no longer shows any models, it's just empty and thus no queries can be made. I haven't made any changes - literally the only thing was updating from v0.0.75 to v0.0.76.

Config shows Indexing spinning endlessly on any repository:

image

To reproduce

No response

Log output

core.log

[info] Starting Continue core...
[2024-10-21T15:01:08] [info] Starting Continue core... 
[2024-10-21T15:01:08] Setup 
[2024-10-21T15:01:08] Core started 
[2024-10-21T15:01:11] LanceDBIndex, skipping .mock-data/mocks.jsonl: Error: did not chunk properly 
[2024-10-21T15:02:08] [info] Exiting Continue core... 
[info] Starting Continue core...
[2024-10-21T15:02:19] [info] Starting Continue core... 
[2024-10-21T15:02:19] Setup 
[2024-10-21T15:02:19] Core started 
[2024-10-21T16:15:35] [info] Exiting Continue core... 
[info] Starting Continue core...
[2024-10-21T16:17:45] [info] Starting Continue core... 
[2024-10-21T16:17:45] Setup 
[2024-10-21T16:17:45] Core started
Patrick-Erichsen commented 3 days ago

@chubshaun thanks for flagging this and sharing your config/environment, will get back to you here ASAP.

Patrick-Erichsen commented 3 days ago

@chubshaun - could you try a few things to troubleshoot this?

nomarek commented 3 days ago

I have the same problem. Model list is empty. Adding "disableIndexing" doesn't help. Everything is working fine on the same config in VS Code. I tried restart, reinstalling the extension and even deleting ~/.continue directory. Nothing helps. Log file looks exactly the same as the one pasted by @chubshaun.

PyCharm:

image

VS Code:

image
Patrick-Erichsen commented 3 days ago

@nperez0111 @chubshaun I've just released v0.0.77 that should resolve this issue. The root of the bug is that we were attempting to set permissions on a file that no longer exists in the build.

Please let me know if the issue is resolved for you with the new release!

nomarek commented 3 days ago

Thank you! This patch helped. It's working now.

LucaSoato commented 3 days ago

Hi, thanks for solving this bug! After updating, it was still blocked on the old bugged chat (from v0.0.76). I opened the history, accessed an even older chat that was working, then opened a new one, and now it works flawlessly 😃