Failed to create index
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:windows11
- Continue:0.8.44
- IDE:vscode 1.91.1
- Model:llama3.1cn:8b
- config.json:
{
"model": "AUTODETECT",
"contextLength": 8192,
"title": "Ollama",
"completionOptions": {
"temperature": 0.3,
"topP": 0.5,
"maxTokens":7000
},
"apiBase": "http://localhost:11434",
"provider": "ollama"
},
"embeddingsProvider": {
"provider": "ollama",
"model": "bge:m3",
"apiBase": "http://localhost:11434/ollama/",
"requestOptions": {
"headers": {
"Content-Type": "application/json"
}
}
},
- ollama list:
gemma-cn:27b 0692b5851f9c 12 GB 20 hours ago
llama3.1cn:70b 7d97e141b577 34 GB 45 hours ago
bge:m3 89ccab16089a 617 MB 2 days ago
llama3.1cn:8b de6c77e21e3d 4.9 GB 3 days ago
qwen2:a14 76b66af85d62 24 GB 6 days ago
Description
TypeError: Cannot read properties of undefined (reading 'trim')
To reproduce
No response
Log output
log.ts:419 INFO Started local extension host with pid 48640.
log.ts:429 WARN [redhat.vscode-yaml]: 无法注册“redhat.telemetry.enabled”。此属性已注册。
console.ts:137 [Extension Host] filesize is active
log.ts:419 INFO [perf] Render performance baseline is 37ms
console.ts:137 [Extension Host] [INFO] 2024-08-02T03:42:10.875Z - Translations initialized.
console.ts:137 [Extension Host] [INFO] 2024-08-02T03:42:10.879Z - Extension activated!
console.ts:137 [Extension Host] Build error. Please check your ~/.continue/config.ts file: TypeError: Invalid host defined options
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///c%3A/Users/xldistance/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///c%3A/Users/xldistance/.vscode/extensions/redhat.vscode-yaml-1.15.0/syntaxes/yaml.tmLanguage.json
register @ TMScopeRegistry.ts:46
console.ts:137 [Extension Host] Build error. Please check your ~/.continue/config.ts file: TypeError: Invalid host defined options
console.ts:137 [Extension Host] Build error. Please check your ~/.continue/config.ts file: TypeError: Invalid host defined options
webviewElement.ts:482 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:482
console.ts:137 [Extension Host] swdc-tracker initialized and ready to send events to snow.software.com
webviewElement.ts:482 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:482
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: No such branch: master.
y @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: No such branch: master.
at F.getBranch (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:935457)
at async T.retryRun (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1028191)
at async T.run (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1027795)
at async T.getBranch (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1016176)
at async T.getBranchBase (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1016462)
at async t.GitHistoryProvider.resolveHEADMergeBase (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:945925)
at async t.GitHistoryProvider.onDidRunGitStatus (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:940157)
y @ console.ts:137
mainThreadExtensionService.ts:78 [vscode.git]No such branch: master.
$onExtensionRuntimeError @ mainThreadExtensionService.ts:78
mainThreadExtensionService.ts:79 Error: No such branch: master.
at F.getBranch (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:935457)
at async T.retryRun (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1028191)
at async T.run (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1027795)
at async T.getBranch (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1016176)
at async T.getBranchBase (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1016462)
at async t.GitHistoryProvider.resolveHEADMergeBase (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:945925)
at async t.GitHistoryProvider.onDidRunGitStatus (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:940157)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:79
console.ts:137 [Extension Host] rejected promise not handled within 1 second: Error: No such branch: master.
y @ console.ts:137
console.ts:137 [Extension Host] stack trace: Error: No such branch: master.
at F.getBranch (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:935457)
at async T.retryRun (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1028191)
at async T.run (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1027795)
at async T.getBranch (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1016176)
at async T.getBranchBase (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1016462)
at async t.GitHistoryProvider.resolveHEADMergeBase (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:945925)
at async t.GitHistoryProvider.onDidRunGitStatus (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:940157)
y @ console.ts:137
mainThreadExtensionService.ts:78 [vscode.git]No such branch: master.
$onExtensionRuntimeError @ mainThreadExtensionService.ts:78
mainThreadExtensionService.ts:79 Error: No such branch: master.
at F.getBranch (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:935457)
at async T.retryRun (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1028191)
at async T.run (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1027795)
at async T.getBranch (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1016176)
at async T.getBranchBase (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:1016462)
at async t.GitHistoryProvider.resolveHEADMergeBase (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:945925)
at async t.GitHistoryProvider.onDidRunGitStatus (c:\Users\xldistance\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\main.js:2:940157)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:79
console.ts:137 [Extension Host] [vscode-icons] v12.8.0 activated!
console.ts:137 [Extension Host] [EditorFlow] Initialized VscodeListener
console.ts:137 [Extension Host] Error updating the chunks index: TypeError: Cannot read properties of undefined (reading 'trim')
y @ console.ts:137
Index creation fails in both release and pre-release versions of 0.8.44
same issue
Hi @xldistance , thanks for reporting this, a few questions for you:
- Was this error thrown immediately, or did some indexing succeed?
- What language is your project in?
@usathyan , mind sharing what OS you're on?
The catch for this log is here: https://github.com/continuedev/continue/blob/dev/core/indexing/CodebaseIndexer.ts#L228
macos sonoma, M2 Max, VS Code. The error has since fixed itself - it was throwing this all day yesterday - and i uninstalled the plugin, reinstalled it, updated it to early release - and dont know what happened, it has now resolved itsself. It is working now. My code is in Python.
Hi @xldistance , thanks for reporting this, a few questions for you:
- Was this error thrown immediately, or did some indexing succeed?
- What language is your project in?
@usathyan , mind sharing what OS you're on?
The
catchfor this log is here: https://github.com/continuedev/continue/blob/dev/core/indexing/CodebaseIndexer.ts#L228
throws an error in the middle of creating an index. python
Thanks for that pointer. I will look at the code to determine what went wrong with my scenario. I dont exactly notice when it started happening, except that when the indexing status turned red and consistently kept red until it automatically turned green by itself (after the various reinstall efforts)
I was using it for python, using aws bedrock claude sonnet 3.5 model for autotabcomplete and chat.
Creating indexes later suddenly works fine ......
Same issue here stuck at planning changes
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!