tonhowtf/omniget · error
nenhum formato selecionado
Error message
nenhum formato selecionado
What it means
Options validation in icon_pack run: none of the output format flags (PNG set, win_ico, icns) was enabled, so the job list is empty and there would be nothing to generate — the run refuses rather than produce an empty icon pack.
Solutions
- Enable at least one output format (PNG, ICO, or ICNS) in the options
- Default to a sane format set when none is chosen
- Validate the form/UI so the run button is disabled until a format is picked
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src-tauri/omniget-core/src/core/tools/icon_pack.rs:230 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tonhowtf/omniget@8600b91f42 (2026-09-12).
Data as JSON: /api/errors/6a24638559ec1855.
Report an issue: GitHub.
Appendix: source
Thrown at src-tauri/omniget-core/src/core/tools/icon_pack.rs:230
"icon-192.png".into(),
Box::new(|| png_bytes(&at(&base, 192))),
));
jobs.push((
"icon-512.png".into(),
Box::new(|| png_bytes(&at(&base, 512))),
));
}
if opts.win_ico {
jobs.push((
"app.ico".into(),
Box::new(|| ico_bytes(&base, &[16, 24, 32, 48, 64, 128, 256])),
));
}
if opts.icns {
jobs.push(("icon.icns".into(), Box::new(|| icns_bytes(&base))));
}
if jobs.is_empty() {
return Err(anyhow!("nenhum formato selecionado"));
}
let total = jobs.len() as u64;
let mut outputs = Vec::new();
let mut largest = 0u32;
for (i, (name, make)) in jobs.iter().enumerate() {
super::report(
progress,
"img-icon",
"progress",
i as u64,
Some(total),
Some(name.clone()),
);
let bytes = make()?;
let path = folder.join(name);
std::fs::write(&path, &bytes)?;
outputs.push(IconOut {View on GitHub (pinned to 8600b91f42)