fix: resilient LocalFile list() + notify feature gate + closure lifetime HRTB fix#103
Open
fix: resilient LocalFile list() + notify feature gate + closure lifetime HRTB fix#103
Conversation
… closure lifetime bug - Add try_ensure_metadata() helper: warns on error, returns Option<&Metadata> - Change file_type().await? to match with warn+continue on error - Remove old symlink error block, replace with try_ensure_metadata - Use is_none_or for file size limit check (skip if metadata unavailable or too big) - Use try_ensure_metadata with let..else for ordinal fetch - Add dep:notify to source-local-file feature (fixes pre-existing CI failure) - Fix apply_component_changes closure lifetime bug (HRTB E0308) in components.rs by using explicit for loops + Vec instead of flat_map iterator chains Co-authored-by: bashandbone <89049923+bashandbone@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
recoco-docs | fd88c9a | Mar 16 2026, 05:46 PM |
Copilot
AI
changed the title
[WIP] [upstream-sync] Update LocalFile source to ignore listing errors
fix: resilient LocalFile list() + notify feature gate + closure lifetime HRTB fix
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports upstream cocoindex PR #1753 to make
LocalFile::list()resilient to per-entry errors during directory traversal. Also fixes two pre-existing CI failures introduced in the filesystem watch commit.LocalFile list() resilience (upstream sync)
Adds
try_ensure_metadata()— a non-propagating variant ofensure_metadata()that warns and returnsOption<&Metadata>instead of erroring. All per-entry I/O errors inlist()now warn and skip rather than aborting the entire listing:Pre-existing CI failures fixed
source-local-filemissingdep:notify— The filesystem watch feature usednotifyin code but never added it to thesource-local-filefeature gate, causingE0432/E0433on every non-fullbuild:apply_component_changesHRTB lifetime error —flat_mapoverVec<&SetupChange<D>>triggered Rust's "implementation ofFnOnceis not general enough" (E0308) when monomorphized for Neo4j'sSetupComponentOperator. The return type of the inner closure depended on the outer closure's input lifetime, violating the implicitfor<'0, '1>bound. Fixed by collecting futures into aVecwith explicitforloops instead of lazy iterator chains.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
test/home/REDACTED/work/recoco/recoco/target/debug/deps/recoco_core-af5104cd93dc7568 /home/REDACTED/work/recoco/recoco/target/debug/deps/recoco_core-af5104cd93dc7568 e050294cd.rlib 7d0200b95c8.rlibtokio_stream -342df82e25d75b9--edition=2021 g/de�� lib/rustlib/x86_--error-format=json lib/rustlib/x86_--json=diagnostic-rendered-ansi,artifacts,future-incompat bin/rustc 0d177fd9ae1e00.sgit 0d177fd9ae1e00.sdiff 0d177fd9ae1e00.s--name-only bin/rustc 0d17�� 0d177fd9ae1e00.sembed-bitcode=no 0d177fd9ae1e00.s-C f/hyper-util-0.1.19/src/lib.rs 0d177fd9ae1e00.sbash 0d177fd9ae1e00.s--norc 0d177fd9ae1e00.s--noprofile 0d177fd9ae1e00.s--check-cfg(dns block)/home/REDACTED/work/recoco/recoco/target/debug/deps/recoco_core-af5104cd93dc7568 /home/REDACTED/work/recoco/recoco/target/debug/deps/recoco_core-af5104cd93dc7568 debuginfo=2 -C debug-assertions=on c83-�� c83-cgu.2.rcgu.o--error-format=json c83-cgu.3.rcgu.o--json=diagnostic-rendered-ansi,artifacts,future-incompat bin/rustc c83-cgu.5.rcgu.o/home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/rustc c83-cgu.6.rcgu.o--crate-name -o bin/rustc fc81�� fc81b6d-cgu.02.r--error-format=json fc81b6d-cgu.03.r--json=diagnostic-rendered-ansi,artifacts,future-incompat bin/rustc fc81b6d-cgu.05.rbash fc81b6d-cgu.06.r--norc fc81b6d-cgu.07.r--noprofile bin/rustc(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.