continuedev/continue

Oops! Something went wrong Cannot read properties of undefined (reading 'includes')

Opened this issue · 4 comments

Before submitting your bug report

Relevant environment info

- OS: Win11
- Continue version:0.8.61
- IDE version:VSCode
- Model:Qwen/Qwen2.5-7B-Instruct
- config.json:
  
{
  "models": [
    {
      "model": "Qwen/Qwen2.5-7B-Instruct",
      "apiBase": "http://myvllmserver:8000/v1",
      "completionOptions": {
        "temperature": 0.7,
        "topK": 1,
        "topP": 0.8,
        "presencePenalty": 0,
        "frequencyPenalty": 0,
        "repetitionPenalty": 1.05,
        "maxTokens": 512
      },
      "title": "qwen-instruct",
      "provider": "vllm",
      "contextLength": 32000
    }
  ],
  "allowAnonymousTelemetry": false,
  "tabAutocompleteOptions": {
    "disable": true
  },
  "systemMessage": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
}


### Description

Hi, this morning, I started VSCode and the Continue.dev extension doesn't work anymore.
I used VSCode and the extension with the Config.json above mentioned correctly till yesterday

What could I do?
Thanks a lot

Mario

### To reproduce

Open Continue.dev extension

### Log output

```Shell
Oops! Something went wrong
Cannot read properties of undefined (reading 'includes')
Continue
Report the issue on GitHub or Discord

Are there additional logs you can share?

@bisontim - Could be many things, but try clearing out your ~/.continue/prompts folder (and any project-specific prompts folder). As I noted in this comment, I'm seeing a Cannot read properties of undefined if I'm not very careful with my prompt formatting.

I tried.
I deleted .contiue so it has been recreated when i opened VSCode.

I configure continue.dev with the config.json
{
"models": [
{
"model": "Qwen/Qwen2.5-7B-Instruct",
"apiBase": "http://myserver.local.domain:8000/v1",
"completionOptions": {
"temperature": 0.7,
"topK": 1,
"topP": 0.8,
"presencePenalty": 0,
"frequencyPenalty": 0,
"repetitionPenalty": 1.05,
"maxTokens": 512
},
"title": "qwen-instruct",
"provider": "vllm",
"contextLength": 32000
}
],
"allowAnonymousTelemetry": false,
"tabAutocompleteOptions": {
"disable": true
},
"systemMessage": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."
}

and it worked.

I closed VSCode and reopened and I got the "Oops! Something went wrong Cannot read properties of undefined (reading 'includes')"

I delete the content of config.json and I saved and I closed the VSCode
I reopened VSCode and I configured again continue.dev refilling with the above content and saved and it worked.
i closed VSCode and I reopened and I got the error..

It seems it works only one time.

What could I do?

thanks a lot for your help

After last Continue.dev update, the behaviour changed.
I don't see anymore the error "Oops! Something went wrong..."
This is the new behaviour:
I open VSCode, I try to interact with the LLM but it doesn't interact.
When I choose "Enter" it doesn't do nothing.
If I click on the "open continue config" and I save, with no modification, the interaction restart to work.