{"record":{"id":"2de2190ce267d9c1","repo":"zellij-org/zellij","slug":"invalid-direction","errorCode":null,"errorMessage":"Invalid Direction: {}","messagePattern":"Invalid Direction: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"zellij-utils/src/ipc/protobuf_conversion.rs","lineNumber":3592,"sourceCode":"        x if x == ProtoResize::Increase as i32 => ProtoResize::Increase,\n        x if x == ProtoResize::Decrease as i32 => ProtoResize::Decrease,\n        _ => return Err(anyhow!(\"Invalid ResizeType: {}\", resize)),\n    };\n    match proto_resize {\n        ProtoResize::Increase => Ok(crate::data::Resize::Increase),\n        ProtoResize::Decrease => Ok(crate::data::Resize::Decrease),\n        ProtoResize::Unspecified => Err(anyhow!(\"Unspecified ResizeType\")),\n    }\n}\n\nfn proto_i32_to_direction(direction: i32) -> Result<crate::data::Direction> {\n    use crate::client_server_contract::client_server_contract::Direction as ProtoDirection;\n    let proto_direction = match direction {\n        x if x == ProtoDirection::Left as i32 => ProtoDirection::Left,\n        x if x == ProtoDirection::Right as i32 => ProtoDirection::Right,\n        x if x == ProtoDirection::Up as i32 => ProtoDirection::Up,\n        x if x == ProtoDirection::Down as i32 => ProtoDirection::Down,\n        _ => return Err(anyhow!(\"Invalid Direction: {}\", direction)),\n    };\n    match proto_direction {\n        ProtoDirection::Left => Ok(crate::data::Direction::Left),\n        ProtoDirection::Right => Ok(crate::data::Direction::Right),\n        ProtoDirection::Up => Ok(crate::data::Direction::Up),\n        ProtoDirection::Down => Ok(crate::data::Direction::Down),\n        ProtoDirection::Unspecified => Err(anyhow!(\"Unspecified direction\")),\n    }\n}\n\nfn proto_i32_to_search_direction(direction: i32) -> Result<crate::input::actions::SearchDirection> {\n    use crate::client_server_contract::client_server_contract::SearchDirection as ProtoSearchDirection;\n    let proto_direction = match direction {\n        x if x == ProtoSearchDirection::Up as i32 => ProtoSearchDirection::Up,\n        x if x == ProtoSearchDirection::Down as i32 => ProtoSearchDirection::Down,\n        _ => return Err(anyhow!(\"Invalid SearchDirection: {}\", direction)),\n    };\n    match proto_direction {","sourceCodeStart":3574,"sourceCodeEnd":3610,"githubUrl":"https://github.com/zellij-org/zellij/blob/e839bfffa586992364309a685b2c71f3b23c247e/zellij-utils/src/ipc/protobuf_conversion.rs#L3574-L3610","documentation":"Error \"Invalid Direction: {}\" thrown in zellij-org/zellij.","triggerScenarios":"Occurs when a protobuf enum value received over IPC has no matching variant; conversion rejects the unknown value.","commonSituations":"Typical of version skew between client and server, or a malformed/corrupted IPC message.","solutions":["Validate the value against the allowed enum range before constructing the message.","Ensure client and server use matching protobuf definitions; regenerate bindings if versions differ."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e839bfffa586992364309a685b2c71f3b23c247e","analyzedAt":"2026-08-19T07:42:58.758Z","contentChangedAt":"2026-08-19T07:42:58.758Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}