{"record":{"id":"aa135900e5984f33","repo":"jdx/mise","slug":"expected-identifier-after-dot","errorCode":null,"errorMessage":"expected identifier after dot","messagePattern":"expected identifier after dot","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/aqua-registry/src/template.rs","lineNumber":312,"sourceCode":"            tokens.next();\n            Ok(Expr::Literal(s.to_string()))\n        }\n        _ => Err(eyre!(\"expected argument\")),\n    }\n}\n\nfn parse_property_chain(\n    tokens: &mut std::iter::Peekable<std::slice::Iter<Token>>,\n    mut expr: Expr,\n) -> Result<Expr> {\n    while matches!(tokens.peek(), Some(Token::Dot)) {\n        tokens.next(); // consume dot\n        skip_whitespace(tokens);\n\n        if let Some(Token::Ident(prop)) = tokens.next() {\n            expr = Expr::PropertyAccess(Box::new(expr), prop.to_string());\n        } else {\n            bail!(\"expected identifier after dot\");\n        }\n    }\n\n    Ok(expr)\n}\n\nfn skip_whitespace(tokens: &mut std::iter::Peekable<std::slice::Iter<Token>>) {\n    while matches!(tokens.peek(), Some(Token::Whitespace(_))) {\n        tokens.next();\n    }\n}\n\n/// Function signature for template functions that return Value trait objects\ntype TemplateFn = fn(&[Box<dyn Value>]) -> Result<Box<dyn Value>>;\n\n/// Static registry of available template functions\nstatic FUNCTION_REGISTRY: LazyLock<HashMap<&'static str, TemplateFn>> = LazyLock::new(|| {\n    let mut registry: HashMap<&'static str, TemplateFn> = HashMap::new();","sourceCodeStart":294,"sourceCodeEnd":330,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/crates/aqua-registry/src/template.rs#L294-L330","documentation":"After a '.' in an aqua template property chain (e.g. `Version.Major`), the next token must be an identifier naming the property. The parser got a different token kind, so the dotted access is malformed at that position.","triggerScenarios":"Thrown at crates/aqua-registry/src/template.rs:312 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Put a property name right after the dot (Major, Minor, Patch, etc.)","Remove a trailing/duplicated dot","Check spelling of the property against the SemVer value's fields"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}