emilk/egui · error
Should only be called after `col`
Error message
Should only be called after `col`
What it means
Error "Should only be called after `col`" thrown in emilk/egui.
Solutions
- Call TableBuilder::column/col before accessing row-level cell APIs that require a current column.
Example fix
table.body(|mut body| { body.row(18.0, |mut row| { row.col(|ui| { ui.label("cell"); }); }); }); When it happens
Trigger: Thrown at crates/egui_extras/src/table.rs:1352 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of emilk/egui@8fb03c9ae9 (2026-08-19).
Data as JSON: /api/errors/902bb31b7fcf7231.
Report an issue: GitHub.
Appendix: source
Thrown at crates/egui_extras/src/table.rs:1352
#[inline]
pub fn set_hovered(&mut self, hovered: bool) {
self.hovered = hovered;
}
/// Set the overline state for this row. The overline is a line above the row,
/// usable for e.g. visually grouping rows.
#[inline]
pub fn set_overline(&mut self, overline: bool) {
self.overline = overline;
}
/// Returns a union of the [`Response`]s of the cells added to the row up to this point.
///
/// You need to add at least one row to the table before calling this function.
pub fn response(&self) -> Response {
self.response
.clone()
.expect("Should only be called after `col`")
}
/// Returns the index of the row.
#[inline]
pub fn index(&self) -> usize {
self.row_index
}
/// Returns the index of the column. Incremented after a column is added.
#[inline]
pub fn col_index(&self) -> usize {
self.col_index
}
}
impl Drop for TableRow<'_, '_> {
#[inline]
fn drop(&mut self) {View on GitHub (pinned to 8fb03c9ae9)