{"record":{"id":"43af9ae0c1c5842f","repo":"sickn33/agentic-awesome-skills","slug":"field-fieldindex-1-fielddef-name-is-empt","errorCode":null,"errorMessage":"Field ${fieldIndex + 1} (${fieldDef.name}) is empty","messagePattern":"Field (.+?) \\((.+?)\\) is empty","errorType":"validation","errorClass":"CronError","httpStatus":null,"severity":"error","filePath":"skills/cron-doctor/scripts/cron-engine.js","lineNumber":39,"sourceCode":"  constructor(message, fieldIndex) {\n    super(message);\n    this.name = 'CronError';\n    this.fieldIndex = fieldIndex;\n  }\n}\n\n// ---- Name resolution ----\nfunction resolveName(token, names) {\n  if (!names) return null;\n  const up = token.toUpperCase();\n  const idx = names.indexOf(up);\n  return idx === -1 ? null : idx;\n}\n\n// ---- Field parsing ----\nfunction parseField(raw, fieldDef, fieldIndex) {\n  const trimmed = String(raw).trim();\n  if (trimmed === '') throw new CronError(`Field ${fieldIndex + 1} (${fieldDef.name}) is empty`, fieldIndex);\n\n  const out = { raw: trimmed, values: null, special: null };\n\n  // Special: day-of-week \"#\" (nth weekday)\n  if (fieldDef.key === 'dow' && trimmed.includes('#')) {\n    const m = trimmed.match(/^([0-7A-Za-z]+)#([1-5])$/);\n    if (!m) throw new CronError(`Invalid \"#\" syntax in day-of-week: \"${trimmed}\"`, fieldIndex);\n    let dowNum = parseSingleNum(m[1], fieldDef, fieldIndex);\n    if (dowNum === 7) dowNum = 0;\n    out.special = { kind: 'hash', dow: dowNum, nth: parseInt(m[2], 10) };\n    return out;\n  }\n\n  // Special: day-of-week \"L\" (last weekday)\n  if (fieldDef.key === 'dow' && /L$/i.test(trimmed)) {\n    const m = trimmed.match(/^([0-7A-Za-z]+)L$/i);\n    if (!m) throw new CronError(`Invalid \"L\" syntax in day-of-week: \"${trimmed}\"`, fieldIndex);\n    let dowNum = parseSingleNum(m[1], fieldDef, fieldIndex);","sourceCodeStart":21,"sourceCodeEnd":57,"githubUrl":"https://github.com/sickn33/agentic-awesome-skills/blob/58d857988fcfac6986206bca2b2fe223aa437e4b/skills/cron-doctor/scripts/cron-engine.js#L21-L57","documentation":"Error \"Field ${fieldIndex + 1} (${fieldDef.name}) is empty\" thrown in sickn33/agentic-awesome-skills.","triggerScenarios":"Thrown at skills/cron-doctor/scripts/cron-engine.js:39 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"58d857988fcfac6986206bca2b2fe223aa437e4b","analyzedAt":"2026-08-26T11:55:59.350Z","schemaVersion":2},"datasetVersion":"2026-08-26T14:46:13.012Z"}