You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
0.38.0 does not compile without the remote feature: job.rs uses the remote-gated Error::Http variant #4142
lancedb 0.38.0 does not compile without the remote feature: src/job.rs is compiled unconditionally (pub mod job; in src/lib.rs) and constructs Error::Http { … }, but that variant is declared behind #[cfg(feature = "remote")] in src/error.rs. Since the crate's default feature set is empty, a plain lancedb = "0.38" dependency (with or without default-features = false) fails to build. 0.37.1 builds fine with the same feature set.
Reproduction
[dependencies]
lancedb = "0.38"# default features are empty, so `default-features = false` makes no difference
$ cargo check
error[E0599]: no variant named `Http` found for enum `error::Error`
--> …/lancedb-0.38.0/src/job.rs:56:40
|
56 | Some(request_id) => Error::Http {
| ^^^^ variant not found in `error::Error`
|
::: …/lancedb-0.38.0/src/error.rs:55:1
error[E0599]: no variant named `Http` found for enum `error::Error`
--> …/lancedb-0.38.0/src/job.rs:66:40
|
66 | Some(request_id) => Error::Http {
| ^^^^ variant not found in `error::Error`
rustc 1.98.0 (88d9e12ae 2026-08-18), macOS aarch64. Enabling remote makes it compile, but that pulls in reqwest/http/urlencoding and the lance-namespace-impls REST adapters, which a local-only embedding has no use for.
Where
src/lib.rs:188 — pub mod job; (ungated)
src/job.rs:56 and :66 — Error::Http { source, request_id, status_code }
src/error.rs:111 — #[cfg(feature = "remote")] on the Http variant
Suggested fix
Either gate the module (#[cfg(feature = "remote")] pub mod job;) if the job API is remote-only, or gate the two Error::Http arms in job.rs behind remote and fall through to the existing non-HTTP variant otherwise. A cargo check --no-default-features (which for this crate is the default build) in CI would catch this class.
Thanks — happy to open a PR for whichever shape you prefer.
I'd like to take this. Plan: keep pub mod job; ungated (the module isn't
remote-only — it has local job support), and instead gate the two Error::Http arms in TerminalResult::decode() behind #[cfg(feature = "remote")], falling through to the existing Error::Runtime variant otherwise. request_id is only Some for remote
jobs, so the fallback is unreachable in practice without the feature.
Will verify with cargo check -p lancedb --no-default-features and --features remote.
I hit this too while building lancedb without default features. @akchhayasharma claimed this on Sep 8 with a plan but no PR has appeared in the 12 days since, so I went ahead and implemented the same approach: TerminalResult::decode in rust/lancedb/src/job.rs now builds the failure through a small remote_job_error helper that is Error::Http with the remote feature and falls back to Error::Runtime without it (where the Http variant does not exist). Verified cargo check -p lancedb --no-default-features fails with the reported E0599 before the change and passes after, and --features remote still passes. Opening a PR shortly — happy to step aside if you already have one in flight.
0.39.0 has the same defect. In rust/lancedb/src/job.rs the two decode() arms still construct Error::Http { … } unconditionally (~lines 102/112), while error.rs gates the variant behind #[cfg(feature = "remote")]. With the default (empty) feature set, lancedb = "0.39" fails with
the same E0599: no variant named 'Http'; --features remote compiles. 0.37.1 remains the last
release that builds with default features.
This continues to be a problem in the upcoming release. I reckon this is a good opportunity to also address that TerminalResult can theoretically represent combinations that make no sense TerminalResult { value: None, request_id: None }. I think a better representation is:
Since visibility is pub(crate) external API doesn't break. You can even #[cfg(feature = "remote")] gate the Remote variant. So a more complete solution would look like:
That said, if there's appetite for a breaking change, I don't think it makes sense for a parsing error to become an HTTP error. If there's no non-200 HTTP status code in the code, it's by convention, not an HTTP error. I recommend adding another error variant to the Error enum, but it will break the public API.
Still reproducible with lancedb = "=0.40.0" from crates.io (its src/job.rs is identical to tag v0.40.0), and main @ <MAIN_SHA> (0.41.0-beta.10) still has the same ungated Error::Http arms at rust/lancedb/src/job.rs:104 and :114.
$ cargo build # lancedb = "=0.40.0", default features
error[E0599]: no variant named `Http` found for enum `error::Error`
--> .../lancedb-0.40.0/src/job.rs:102:40
error[E0599]: no variant named `Http` found for enum `error::Error`
--> .../lancedb-0.40.0/src/job.rs:112:40
rustc 1.97.1, Linux x86_64. The regression came in with 426684c (#3985, 2026-08-21), so tags v0.38.0, v0.39.0 and v0.40.0 all contain it.
One more data point on why CI does not catch it: the "Run clippy (without remote feature)" step in .github/workflows/rust.yml runs with --workspace, and both python/Cargo.toml and nodejs/Cargo.toml enable lancedb/remote by default, so feature unification turns remote back on for lancedb. <MAIN_CHECK_RESULT> #4100 added a package-scoped cargo check -p lancedb --no-default-features step for exactly this, but it was closed unmerged, and the two open PRs (#4103, #4233) only touch job.rs. It might be worth adding that CI step together with whichever fix lands.
Our use case: we embed lancedb in-process (cdylib loaded by a .NET host) for local-only storage, so we would prefer not to enable remote. For now we work around it with features = ["remote"], which adds 18 crates to the dependency tree (419 → 437 with cargo tree -e normal), including axum, tonic, arrow-flight, oauth2 and webbrowser.
Activity
akchhayasharma commentedon Sep 8, 2026
I'd like to take this. Plan: keep
pub mod job;ungated (the module isn'tremote-only — it has local job support), and instead gate the two
Error::Httparms inTerminalResult::decode()behind#[cfg(feature = "remote")], falling through to the existingError::Runtimevariant otherwise.request_idis onlySomefor remotejobs, so the fallback is unreachable in practice without the feature.
Will verify with
cargo check -p lancedb --no-default-featuresand--features remote.SIDDARTHAREDDY8 commentedon Sep 20, 2026
I hit this too while building
lancedbwithout default features. @akchhayasharma claimed this on Sep 8 with a plan but no PR has appeared in the 12 days since, so I went ahead and implemented the same approach:TerminalResult::decodeinrust/lancedb/src/job.rsnow builds the failure through a smallremote_job_errorhelper that isError::Httpwith theremotefeature and falls back toError::Runtimewithout it (where theHttpvariant does not exist). Verifiedcargo check -p lancedb --no-default-featuresfails with the reported E0599 before the change and passes after, and--features remotestill passes. Opening a PR shortly — happy to step aside if you already have one in flight.Improve: Upgrade crates and servers, call Weaviate over REST
chore(deps): bump lancedb 0.26.2 -> 0.37.1, arrow 57 -> 58 (#1618)
Goldziher commentedon Oct 3, 2026
0.39.0has the same defect. Inrust/lancedb/src/job.rsthe twodecode()arms still constructError::Http { … }unconditionally (~lines 102/112), whileerror.rsgates the variant behind#[cfg(feature = "remote")]. With the default (empty) feature set,lancedb = "0.39"fails withthe same
E0599: no variant named 'Http';--features remotecompiles.0.37.1remains the lastrelease that builds with default features.
upgrading lancedb to 0.40.0-beta.12
upgrading lancedb to 0.40.0-beta.12
chore(deps): bump lancedb 0.26.2 -> 0.37.1, arrow 57 -> 58 (#1618)
assiotis commentedon Oct 16, 2026
This continues to be a problem in the upcoming release. I reckon this is a good opportunity to also address that
TerminalResultcan theoretically represent combinations that make no senseTerminalResult { value: None, request_id: None }. I think a better representation is:Since visibility is
pub(crate)external API doesn't break. You can even#[cfg(feature = "remote")]gate theRemotevariant. So a more complete solution would look like:That said, if there's appetite for a breaking change, I don't think it makes sense for a parsing error to become an HTTP error. If there's no non-200 HTTP status code in the code, it's by convention, not an HTTP error. I recommend adding another error variant to the
Errorenum, but it will break the public API.terapyon commentedon Oct 21, 2026
Still reproducible with
lancedb = "=0.40.0"from crates.io (itssrc/job.rsis identical to tagv0.40.0), andmain@ <MAIN_SHA> (0.41.0-beta.10) still has the same ungatedError::Httparms atrust/lancedb/src/job.rs:104and:114.rustc 1.97.1, Linux x86_64. The regression came in with 426684c (#3985, 2026-08-21), so tags v0.38.0, v0.39.0 and v0.40.0 all contain it.
One more data point on why CI does not catch it: the "Run clippy (without remote feature)" step in
.github/workflows/rust.ymlruns with--workspace, and bothpython/Cargo.tomlandnodejs/Cargo.tomlenablelancedb/remoteby default, so feature unification turnsremoteback on forlancedb. <MAIN_CHECK_RESULT>#4100 added a package-scoped
cargo check -p lancedb --no-default-featuresstep for exactly this, but it was closed unmerged, and the two open PRs (#4103, #4233) only touchjob.rs. It might be worth adding that CI step together with whichever fix lands.Our use case: we embed lancedb in-process (cdylib loaded by a .NET host) for local-only storage, so we would prefer not to enable
remote. For now we work around it withfeatures = ["remote"], which adds 18 crates to the dependency tree (419 → 437 withcargo tree -e normal), including axum, tonic, arrow-flight, oauth2 and webbrowser.fix: gate remote job error construction behind the remote feature (#4233
chore(deps): bump lancedb 0.37.1 -> 0.41.0
chore(deps): bump lancedb 0.37.1 -> 0.41.0 (#2298)