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://continue.dev/docs
Apache License 2.0
13.1k stars 891 forks source link

@codebase not working on PyCharm #1589

Open fracapuano opened 6 days ago

fracapuano commented 6 days ago

Before submitting your bug report

Relevant environment info

- OS: macOS Sonoma 14.4.1
- Continue: 0.0.50
- IDE: PyCharm 2024.1.3

Description

Hello there 👋 We have been having issues with making @codebase work on PyCharm. We get answers indicating the LLM does not actually have access to the codebase itself.

cc. @Charles-Go @agerlic

To reproduce

  1. Ping @codebase asking it information about a specific function p

Log output

[2024-06-27T13:31:55] Table not found in LanceDB <absolute path to current folder>
popovanton0 commented 4 days ago

I have the same problem.

{
  "models": [
    {
      "title": "Codestral",
      "provider": "ollama",
      "model": "codestral"
    }
  ],
  "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": "Codestral",
    "provider": "ollama",
    "model": "codestral"
  },
  "allowAnonymousTelemetry": false,
  "embeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text"
  }
}

sestinj commented 2 days ago

If either of you get the chance to take a look it might be helpful to see what the exact error is (at least the format of the \<absolute path to current folder>). Either way I think it is related to something that has been solved and should be in the next release

popovanton0 commented 2 days ago

I got

Table not found in LanceDB UsersantonpopovAndroidStudioProjectsflamingo-androidmainvectordbnomic-embed-text

Interestingly, i just found out that continue plugin works on other projects of mine, but not this one. Maybe it has something to do with its name?

fracapuano commented 1 day ago

@popovanton0 seems like a slash is missing in the path no? 🤔

popovanton0 commented 1 day ago

I guess table names cannot have slashes in them. Because other projects work 🤷