-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No matching files found in the database. Indexing is required. #170
Comments
I'm also getting this |
🤖 This is my suggestion: File: modules/summaries.js To fix this issue, you need to make sure that the files you want to process are indexed in the database. You can do this by running the indexing script before running the task that is causing the error. If you have already indexed the files and you are still encountering the error, you may need to check if the indexing script is working correctly and if the files are being indexed in the correct database. In the async function readAllSummaries(codeBaseDirectory) {
// ... (previous code)
if (typeof summaries === 'undefined' || summaries.length === 0) {
console.log("No matching files found in the database. Indexing is required.");
console.log("Summaries:", summaries); // Add this line to check the value of summaries
throw new Error("Cannot run without summaries. Indexing is required.");
}
// ... (rest of the code)
} This will help you identify if the problem is with the database or the files you are trying to process. |
@3geniosmx @JayBuckley7 Did you guys get this on a fresh install?
|
Yes it was a fresh install, I'll give your suggestion a try thanks |
@JayBuckley7 what OS and how did you put the codebase directory?
|
I had the same issue, but I fixed it by using the right format for CODE_DIR. Make sure to use forward slashes, and make sure to use quotes ( ./ doesn't need quotes but I don't know the technical reason why). Example: CODE_DIR="C:\src\Flutter Apps\app_folder" |
Describe the issue
I run the script and this index all files but when tryin to run a task gime this error can you help me bro
No matching files found in the database. Indexing is required.
/Users/*****/autopilot/modules/summaries.js:79
throw new Error("Cannot run without summaries. Indexing is required.");
^
Error: Cannot run without summaries. Indexing is required.
at readAllSummaries (/Users//autopilot/modules/summaries.js:79:11)
at async getSummaries (/Users//autopilot/modules/summaries.js:100:21)
at async main (/Users/*****/autopilot/ui.js:60:21)
The text was updated successfully, but these errors were encountered: