continue
continue copied to clipboard
Slash command /so throws an error.
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [X] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: ubuntu 22.04
- Continue: v0.8.52
- IDE: vscode 1.93.1
- Model: local OpenAI compatible
- config.json:
{
"models": [
{
"model": "claude-3-5-sonnet-20240620",
"provider": "anthropic",
"apiKey": "",
"title": "Claude 3.5 Sonnet"
},
{
"model": "hermes3-70b-awq",
"provider": "openai",
"apiBase": "http://localhost:2242/v1",
"apiKey": "EMPTY",
"title": "hermes3"
}
],
// "tabAutocompleteModel": {
// "title": "Codestral",
// "provider": "mistral",
// "model": "codestral-latest",
// "apiKey": ""
// },
"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"
}
],
"contextProviders": [
{
"name": "code",
"params": {}
},
{
"name": "docs",
"params": {}
},
{
"name": "diff",
"params": {}
},
{
"name": "terminal",
"params": {}
},
{
"name": "problems",
"params": {}
},
{
"name": "folder",
"params": {}
},
{
"name": "codebase",
"params": {}
},
{
"name": "search"
},
{
"name": "repo-map"
}
],
"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"
},
{
"name": "so",
"description": "Reference StackOverflow to answer the question"
},
{
"name": "onboard",
"description": "Familiarize yourself with the codebase"
}
]
}
Description
Using the slash command /so to search stack overflow gives an error: TypeError: Cannot read properties of undefined (reading 'map').
To reproduce
Try running the /so command and if it isn't reproducible, we can track down what is wrong on my end.
Log output
notificationsAlerts.ts:42 Cannot read properties of undefined (reading 'map')
c @ notificationsAlerts.ts:42
(anonymous) @ notificationsAlerts.ts:28
B @ event.ts:1242
C @ event.ts:1253
fire @ event.ts:1277
addNotification @ notifications.ts:228
notify @ notificationService.ts:253
(anonymous) @ mainThreadMessageService.ts:86
f @ mainThreadMessageService.ts:51
$showMessage @ mainThreadMessageService.ts:45
S @ rpcProtocol.ts:458
Q @ rpcProtocol.ts:443
M @ rpcProtocol.ts:373
L @ rpcProtocol.ts:299
(anonymous) @ rpcProtocol.ts:161
B @ event.ts:1242
fire @ event.ts:1273
fire @ ipc.net.ts:652
K.onmessage @ localProcessExtensionHost.ts:378
log.ts:439 ERR [Extension Host] Error handling webview message: {
"msg": {
"messageId": "2ff0c22d-fb28-4b78-94c0-122fac4250c6",
"messageType": "command/run",
"data": {
"input": "/so python",
"history": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "/so python"
}
]
}
],
"modelTitle": "hermes3",
"slashCommandName": "so",
"contextItems": [],
"historyIndex": 0,
"selectedCode": []
}
}
}
TypeError: Cannot read properties of undefined (reading 'map')