Keep seeing "Error getting context items from folder" on a project in a Worspace
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
darwin
Kiro Version
0.8.86
Bug Description
When starting new sessions in a Workspace, Kiro seems to not understand the Workspace folder structure and shows "Error getting context items from folder"
Kiro gave me some troubleshooting / fixes based on the log:
Steps to Reproduce
Kiro I see you're experiencing some console errors and warnings in Kiro. Let me break down what's happening and suggest some solutions:
Issues Identified: Extension Errors: The todo-tree extension is throwing a "Class constructor cannot be invoked without 'new'" error Database Issues: SQLite syntax error in the Full Text Search (FTS) system Codebase Indexing: The #codebase context provider isn't finding results Extension Host: Becoming unresponsive and requiring profiling Deprecation Warnings: The punycode module deprecation (less critical) Recommended Solutions:
- Fix Extension Issues The todo-tree extension seems to be the main culprit. You can:
Command ls -la ~/.kiro/extensions/ | grep todo-tree drwxr-xr-x@ 16 robweaver staff 512 Sep 17 15:30 gruntfuggly.todo-tree-0.0.215-universal Try disabling or updating the todo-tree extension. You can disable it through Kiro's extension panel or remove it entirely:
rm -rf ~/.kiro/extensions/gruntfuggly.todo-tree-0.0.215-universal 2. Reset Codebase Index The SQLite FTS error suggests the codebase index is corrupted. Let's check if there's an index to reset:
Command find ~/.kiro -name ".db" -o -name "index" -o -name "cache" | head -10 /Users/robweaver/.kiro/extensions/ms-python.mypy-type-checker-2025.2.0-universal/bundled/libs/packaging/pycache /Users/robweaver/.kiro/extensions/ms-python.mypy-type-checker-2025.2.0-universal/bundled/libs/cattrs/pycache /Users/robweaver/.kiro/extensions/ms-python.mypy-type-checker-2025.2.0-universal/bundled/libs/cattrs/gen/pycache /Users/robweaver/.kiro/extensions/ms-python.mypy-type-checker-2025.2.0-universal/bundled/libs/attrs/pycache /Users/robweaver/.kiro/extensions/ms-python.mypy-type-checker-2025.2.0-universal/bundled/libs/pycache /Users/robweaver/.kiro/extensions/ms-python.mypy-type-checker-2025.2.0-universal/bundled/libs/attr/pycache /Users/robweaver/.kiro/extensions/ms-python.mypy-type-checker-2025.2.0-universal/bundled/libs/mypy/test/testfinegrainedcache.py /Users/robweaver/.kiro/extensions/ms-python.mypy-type-checker-2025.2.0-universal/bundled/libs/mypy/test/testfscache.py /Users/robweaver/.kiro/extensions/ms-python.mypy-type-checker-2025.2.0-universal/bundled/libs/mypy/typeshed/stdlib/linecache.pyi /Users/robweaver/.kiro/extensions/ms-python.mypy-type-checker-2025.2.0-universal/bundled/libs/mypy/plugins/pycache Command find ~/.kiro -name ".sqlite*" -o -name "*.db" | grep -v extensions robweaver 07:20 AccountCreation (fix-jenkin…) robweaver 07:20 AccountCreation (fix-jenkin…)$ 3. Quick Fixes to Try: Restart Kiro - This often resolves extension host issues Clear workspace cache - Try opening a fresh workspace Re-index codebase - Use the command palette and search for "reindex" or "rebuild index" 4. Check Kiro Settings: Command ls -la ~/.kiro/settings/ total 8 drwxr-xr-x@ 3 robweaver staff 96 Nov 24 18:02 . drwxr-xr-x@ 10 robweaver staff 320 Dec 4 14:40 .. -rw-r--r--@ 1 robweaver staff 2 Mar 21 2025 cli.json The most immediate fix would be to:
Disable the problematic todo-tree extension Restart Kiro completely Try re-indexing your codebase through the command palette The errors suggest some extensions are incompatible with your current Kiro version, and the database corruption is preventing proper codebase indexing. These steps should resolve the main issues you're seeing.
Revert
Auto Autopilot
Expected Behavior
Maybe not lose it's context :)
Conversation ID
a79b701f-35fc-4e29-854a-dbb62822f330 72f6668c-69b5-406c-a3a5-fb043b298c05
Additional Context
Console log:
workbench.desktop.main.js:2378 Got token path with schema file and path /Users/robweaver/.aws/sso/cache/kiro-auth-token.json
workbench.desktop.main.js:34 INFO Started local extension host with pid 7499.
workbench.desktop.main.js:11682 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ workbench.desktop.main.js:11682
workbench.desktop.main.js:1302 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///Applications/Kiro.app/Contents/Resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///Users/robweaver/.kiro/extensions/redhat.vscode-yaml-1.19.1-universal/syntaxes/yaml.tmLanguage.json
register @ workbench.desktop.main.js:1302
textMateTokenizationWorker.workerMain.js:26 Overwriting grammar scope name to file mapping for scope source.yaml.
Old grammar file: file:///Applications/Kiro.app/Contents/Resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file: file:///Users/robweaver/.kiro/extensions/redhat.vscode-yaml-1.19.1-universal/syntaxes/yaml.tmLanguage.json
register @ textMateTokenizationWorker.workerMain.js:26
workbench.desktop.main.js:34 ERR [Extension Host] (node:7499) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `Kiro Helper (Plugin) --trace-deprecation ...` to show where the warning was created)
error @ workbench.desktop.main.js:34
workbench.desktop.main.js:523 [Extension Host] (node:7499) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `Kiro Helper (Plugin) --trace-deprecation ...` to show where the warning was created)
fbs @ workbench.desktop.main.js:523
workbench.desktop.main.js:34 INFO [perf] Render performance baseline is 14ms
workbench.desktop.main.js:547 [Gruntfuggly.todo-tree]Class constructor nu cannot be invoked without 'new'
$onExtensionRuntimeError @ workbench.desktop.main.js:547
workbench.desktop.main.js:547 TypeError: Class constructor nu cannot be invoked without 'new'
at p (/Users/robweaver/.kiro/extensions/gruntfuggly.todo-tree-0.0.215-universal/dist/extension.js:99:15012)
at /Users/robweaver/.kiro/extensions/gruntfuggly.todo-tree-0.0.215-universal/dist/extension.js:99:18316
at Array.forEach (<anonymous>)
at Timeout.k [as _onTimeout] (/Users/robweaver/.kiro/extensions/gruntfuggly.todo-tree-0.0.215-universal/dist/extension.js:99:18289)
at listOnTimeout (node:internal/timers:590:11)
at process.processTimers (node:internal/timers:523:7)
$onExtensionRuntimeError @ workbench.desktop.main.js:547
workbench.desktop.main.js:34 ERR An unknown error occurred. Please consult the log for more details.
error @ workbench.desktop.main.js:34
workbench.desktop.main.js:523 [Extension Host] Error retrieving from FTS: Error: SQLITE_ERROR: near "t": syntax error
fbs @ workbench.desktop.main.js:523
workbench.desktop.main.js:11480 Error getting context items from folder: Error: Warning: No results found for #codebase context provider.
c @ workbench.desktop.main.js:11480
workbench.desktop.main.js:11682 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ workbench.desktop.main.js:11682
workbench.desktop.main.js:34 INFO Extension host (LocalProcess pid: 7499) is unresponsive.
workbench.desktop.main.js:34 INFO Extension host (LocalProcess pid: 7499) is responsive.
workbench.desktop.main.js:34 INFO UNRESPONSIVE extension host: received responsive event and cancelling profiling session
workbench.desktop.main.js:34 INFO UNRESPONSIVE extension host: starting to profile NOW
workbench.desktop.main.js:11513 Extension Host
workbench.desktop.main.js:11513 Debugger attached.
workbench.desktop.main.js:27 Error: Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!
at $Ni.add (workbench.desktop.main.js:27:1553)
at workbench.desktop.main.js:2595:6605
add @ workbench.desktop.main.js:27
(anonymous) @ workbench.desktop.main.js:2595
Hey @robw-adobe, Apologies for the delay in getting back to you. We'd like to investigate this further—are you able to reproduce this issue using the latest version of Kiro? Please update and let us know if the problem persists.
This issue has been automatically closed due to inactivity. It has been 7 days since we requested additional information.
If you still need help with this issue, please feel free to reopen it or create a new issue with the requested details.