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.66k stars 1.72k forks source link

Bug with cmd + i in pycharm 2024.1.4 #1913

Open Altroo opened 3 months ago

Altroo commented 3 months ago

Before submitting your bug report

Relevant environment info

- OS: Windows 11
- Continue: 0.0.56
- IDE: pycharm professional 2024.1.4
- Model: any model
- config.json:

{
  "models": [
    {
      "title": "Llama3:8b",
      "model": "llama3:8b",
      "completionOptions": {},
      "apiBase": "http://localhost:11434",
      "provider": "ollama"
    },
    {
      "title": "Codellama:python",
      "model": "codellama:python",
      "completionOptions": {},
      "apiBase": "http://localhost:11434",
      "provider": "ollama"
    },
    {
      "title": "Codellama:13b-python",
      "model": "codellama:13b-python",
      "completionOptions": {},
      "apiBase": "http://localhost:11434",
      "provider": "ollama"
    },
    {
      "title": "Codellama:13b-instruct",
      "model": "codellama:13b-instruct",
      "completionOptions": {},
      "apiBase": "http://localhost:11434",
      "provider": "ollama"
    },
    {
      "model": "AUTODETECT",
      "title": "Groq",
      "apiKey": "API",
      "provider": "openai",
      "apiBase": "https://api.groq.com/openai/v1/"
    },
    {
      "model": "claude-3-5-sonnet-20240620",
      "provider": "anthropic",
      "apiKey": "API",
      "title": "Claude 3.5 Sonnet"
    }
  ],
  "slashCommands": [
    {
      "name": "edit",
      "description": "Edit selected code"
    },
    {
      "name": "comment",
      "description": "Write comments for the selected code"
    },
    {
      "name": "share",
      "description": "Export this session as markdown"
    }
  ],
  "customCommands": [
    {
      "name": "test",
      "prompt": "Write 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": "open",
      "params": {}
    },
    {
      "name": "code",
      "params": {}
    },
    {
      "name": "docs",
      "params": {}
    },
    {
      "name": "diff"
    },
    {
      "name": "terminal"
    }
  ],
  "tabAutocompleteModel": {
    "title": "Codestral",
    "provider": "mistral",
    "model": "codestral-latest",
    "apiKey": "API"
  },
  "allowAnonymousTelemetry": true,
  "embeddingsProvider": {
    "provider": "free-trial"
  },
  "reranker": {
    "name": "free-trial"
  }
}

Description

This bug is a bit different, the continue popup (cmd + i) in pycharm, only shows when there is no starting space or tab on a code for example :

import foo from bar. # (works).
def foo:
    a = 0 #(not working)

To reproduce

1 : highlight a code. 2 : press cmd + i to open the continue popup. 3 : check if the popup shows.

Log output

No logs, doesn't show any errors
Altroo commented 3 months ago

Any update on this issue ?