jdx/mise · error
expected identifier after dot
Error message
expected identifier after dot
What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/aqua-registry/src/template.rs:312 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/aa135900e5984f33.
Report an issue: GitHub.
Appendix: source
Thrown at crates/aqua-registry/src/template.rs:312
tokens.next();
Ok(Expr::Literal(s.to_string()))
}
_ => Err(eyre!("expected argument")),
}
}
fn parse_property_chain(
tokens: &mut std::iter::Peekable<std::slice::Iter<Token>>,
mut expr: Expr,
) -> Result<Expr> {
while matches!(tokens.peek(), Some(Token::Dot)) {
tokens.next(); // consume dot
skip_whitespace(tokens);
if let Some(Token::Ident(prop)) = tokens.next() {
expr = Expr::PropertyAccess(Box::new(expr), prop.to_string());
} else {
bail!("expected identifier after dot");
}
}
Ok(expr)
}
fn skip_whitespace(tokens: &mut std::iter::Peekable<std::slice::Iter<Token>>) {
while matches!(tokens.peek(), Some(Token::Whitespace(_))) {
tokens.next();
}
}
/// Function signature for template functions that return Value trait objects
type TemplateFn = fn(&[Box<dyn Value>]) -> Result<Box<dyn Value>>;
/// Static registry of available template functions
static FUNCTION_REGISTRY: LazyLock<HashMap<&'static str, TemplateFn>> = LazyLock::new(|| {
let mut registry: HashMap<&'static str, TemplateFn> = HashMap::new();View on GitHub (pinned to 533346cc37)