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.43k stars 1.69k forks source link

issues.data.map is not a function #3027

Open Cheizr opened 16 hours ago

Cheizr commented 16 hours ago

Before submitting your bug report

Relevant environment info

- OS: w10
- Continue version: v0.8.57
- IDE version: 1.95.3
- Model:
- config.json:

{
  "models": [
    {
      "title": "Llama 3.1 8B",
      "provider": "ollama",
      "model": "llama3.1:8b"
    },
    {
      "model": "AUTODETECT",
      "title": "Ollama",
      "completionOptions": {
        "temperature": 1
      },
      "apiBase": "http://localhost:11434/v1/",
      "provider": "ollama"
    },
    {
      "model": "AUTODETECT",
      "title": "LM Studio",
      "apiBase": "http://localhost:1234/v1/",
      "provider": "lmstudio"
    }
  ],
  "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": "Qwen2.5-Coder 1.5B",
    "provider": "ollama",
    "model": "qwen2.5-coder:1.5b"
  },
  "tabAutocompleteOptions": {
    "debounceDelay": 0
  },
  "embeddingsProvider": {
    "provider": "ollama",
    "model": "nomic-embed-text"
  },
  "contextProviders": [
    {
      "name": "url"
    },
    {
      "name": "codebase",
      "params": {
        "nRetrieve": 45,
        "nFinal": 15,
        "useReranking": true
      }
    },
    {
      "name": "docs"
    },
    {
      "name": "folder"
    },
    {
      "name": "diff"
    },
    {
      "name": "code"
    },
    {
      "name": "terminal"
    },
    {
      "name": "open",
      "params": {
        "onlyPinned": false
      }
    },
    {
      "name": "issue",
      "params": {
        "repos": [
          {
            "owner": "continuedev",
            "repo": "continue"
          }
        ],
        "githubToken": "xxx"
      }
    }
  ],
  "allowAnonymousTelemetry": false,
  "docs": [
    {
      "title": "React",
      "startUrl": "https://react.dev/reference/"
    }
  ]
}

Description

After updating continue to 0.9.4 when i open VSCode the following error is displayed: issues.data.map is not a function

To reproduce

No response

Log output

[Extension Host] Error handling webview message: {
  "msg": {
    "messageId": "50144d10-a9df-4df5-86d2-469097f0a639",
    "messageType": "context/loadSubmenuItems",
    "data": {
      "title": "issue"
    }
  }
}

TypeError: issues.data.map is not a function
uGi @ console.ts:137
notificationsAlerts.ts:42 issues.data.map is not a function
c @ notificationsAlerts.ts:42
index.js:747 Error loading items for issue: Object