zellij-org/zellij · error

Invalid combination of alignment ({alignment}) and direction

Error message

Invalid combination of alignment ({alignment}) and direction ({direction})

What it means

Error "Invalid combination of alignment ({alignment}) and direction ({direction})" thrown in zellij-org/zellij.

Source

Thrown at zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:732

                result.push(*pid)
            }
        }
        Ok(result)
    }

    /// Searches for contiguous panes
    fn contiguous_panes_with_alignment(
        &self,
        id: &PaneId,
        border: &HashSet<usize>,
        alignment: &Direction,
        direction: &Direction,
    ) -> Result<BorderAndPaneIds> {
        let err_context = || {
            format!("failed to find contiguous panes {direction} from pane {id:?} with {alignment} alignment")
        };
        let input_error =
            anyhow!("Invalid combination of alignment ({alignment}) and direction ({direction})");

        let pane_to_check = self
            .get_pane_geom(id)
            .with_context(|| no_pane_id(id))
            .with_context(err_context)?;
        let mut result = vec![];
        let mut aligned_panes: Vec<_> = self
            .pane_ids_aligned_with(id, alignment)
            .and_then(|pane_ids| {
                Ok(pane_ids
                    .iter()
                    .filter_map(|p_id| self.get_pane_geom(p_id).map(|pane_geom| (*p_id, pane_geom)))
                    .collect())
            })
            .with_context(err_context)?;

        use Direction::Down as D;
        use Direction::Left as L;

View on GitHub (pinned to 98a0837077)

When it happens

Trigger: Thrown at zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs:732 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zellij-org/zellij@98a0837077 (2026-08-16). Data as JSON: /api/errors/2ebf740586804f19. Report an issue: GitHub.