Skip to content

Prevent entire indexing process from stopping on error and surface messages to Indexing menu #6390

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tingwai
Copy link
Contributor

@tingwai tingwai commented Jul 2, 2025

Description

There are multiple pieces in indexing process, I moved the try/catch into this.indexFiles so the entire process is not stopped when a one or more step errors. The warnings are then collected and propagated to Indexing menu on UI (see video below)

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screenshots

I added some throw errors in code snippets and full text search functions to similar an error.
dont stop indexing on error, display warnings

Tests

[ What tests were added or updated to ensure the changes work as expected? ]


Summary by cubic

Indexing now continues even if some steps fail, and any warnings are shown in the Indexing menu instead of stopping the whole process.

  • UI Improvements
    • Warnings from indexing are displayed in the Indexing menu with options to view details, copy output, or open logs.

@tingwai tingwai requested a review from a team as a code owner July 2, 2025 00:29
@tingwai tingwai requested review from sestinj and removed request for a team July 2, 2025 00:29
Copy link

netlify bot commented Jul 2, 2025

👷 Deploy request for continuedev pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 057809b

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jul 2, 2025
@RomneyDa
Copy link
Collaborator

RomneyDa commented Jul 2, 2025

Could do a bit smaller font size on the warnings like text-sm or text-xs

@tingwai tingwai force-pushed the tingwai/indexing-error-handling-dont-halt-on-error branch from a816e2b to 057809b Compare July 2, 2025 17:13
@tingwai
Copy link
Contributor Author

tingwai commented Jul 2, 2025

Tweaked UI a little per feedback.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants