dbt-labs/dbt-core · error
no values are skipped
Error message
no values are skipped
What it means
Assertion in the Display implementation test path for InternalPackageMode: formatting every clap value variant must succeed and emit each variant without skipping any (embedded, force-write, read-from-disk). Fires only if a new variant is added without Display coverage or formatting regresses.
Solutions
- Add a Display arm / clap value for any newly added InternalPackageMode variant
- Keep the variant list and the formatting test in sync
- Treat failure as a test coverage gap for enum display
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/dbt-common/src/io_args.rs:164 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of dbt-labs/dbt-core@0267ce9170 (2026-09-07).
Data as JSON: /api/errors/36f0fc841efbd489.
Report an issue: GitHub.
Appendix: source
Thrown at crates/dbt-common/src/io_args.rs:164
use crate::pretty_string::YELLOW;
#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize, clap::ValueEnum)]
#[clap(rename_all = "lowercase")]
pub enum InternalPackageMode {
/// Load internal packages from RustEmbed directly, no disk I/O (default).
#[default]
Embedded,
/// Write embedded assets to disk, then load from disk (legacy).
ForceWrite,
/// Assume already on disk, just read (skip writing).
#[value(alias = "read")]
ReadFromDisk,
}
impl Display for InternalPackageMode {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.to_possible_value()
.expect("no values are skipped")
.get_name()
.fmt(f)
}
}
use crate::{
constants::{DBT_GENERIC_TESTS_DIR_NAME, DBT_SNAPSHOTS_DIR_NAME},
io_utils::StatusReporter,
node_selector::{
IndirectSelection, SelectExpression, SelectionCriteria, conjoin_expression,
parse_model_specifiers,
},
tracing::invocation::with_invocation_mut,
};
#[derive(Debug, Clone, PartialEq, Eq, Deserialize, ValueEnum, Serialize, Copy, Default)]
pub enum LogFormat {
Text,
Json,View on GitHub (pinned to 0267ce9170)