{"record":{"id":"7c2668f112703951","repo":"tinyhumansai/openhuman","slug":"missing-value-for-workspace-7c2668","errorCode":null,"errorMessage":"missing value for --workspace","messagePattern":"missing value for --workspace","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/subconscious_cli.rs","lineNumber":43,"sourceCode":"// ── tick ────────────────────────────────────────────────────────────────────\n\nstruct TickFlags {\n    workspace: Option<PathBuf>,\n    mode: Option<String>,\n    verbose: bool,\n}\n\nfn parse_tick_flags(args: &[String]) -> Result<TickFlags> {\n    let mut workspace: Option<PathBuf> = None;\n    let mut mode: Option<String> = None;\n    let mut verbose = false;\n    let mut i = 0;\n    while i < args.len() {\n        match args[i].as_str() {\n            \"--workspace\" | \"-w\" => {\n                workspace = Some(PathBuf::from(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --workspace\"))?,\n                ));\n                i += 2;\n            }\n            \"--mode\" | \"-m\" => {\n                mode = Some(\n                    args.get(i + 1)\n                        .ok_or_else(|| anyhow!(\"missing value for --mode\"))?\n                        .clone(),\n                );\n                i += 2;\n            }\n            \"--verbose\" | \"-v\" => {\n                verbose = true;\n                i += 1;\n            }\n            other => return Err(anyhow!(\"unknown flag '{other}'\")),\n        }\n    }","sourceCodeStart":25,"sourceCodeEnd":61,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/core/subconscious_cli.rs#L25-L61","documentation":"Value-presence guard in `parse_tick_flags` for the `subconscious tick` subcommand. When --workspace/-w is given as the final token, args.get(i+1) is None and the parser fails rather than silently leaving workspace unset. It reports a truncated flag, not a bad path.","triggerScenarios":"Thrown at src/core/subconscious_cli.rs:43 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Supply the path directly after the flag: `--workspace /path/to/ws` (short form -w).","Omit --workspace entirely to use the configured workspace_dir.","Quote paths containing spaces."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}