{"record":{"id":"acb2f610275a3bd4","repo":"eyaltoledano/claude-task-master","slug":"and-invaliddependencies-length-5-more","errorCode":null,"errorMessage":"  ...and ${invalidDependencies.length - 5} more","messagePattern":"  \\.\\.\\.and (.+?) more","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"apps/cli/src/commands/list.command.ts","lineNumber":506,"sourceCode":"\t\ttagName?: string\n\t): void {\n\t\tif (invalidDependencies.length === 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst tagContext = tagName ? ` (tag: ${tagName})` : '';\n\t\tconsole.warn(\n\t\t\tchalk.yellow(\n\t\t\t\t`\\nWarning: ${invalidDependencies.length} invalid dependency reference(s) found${tagContext}:`\n\t\t\t)\n\t\t);\n\t\tinvalidDependencies.slice(0, 5).forEach(({ taskId, depId }) => {\n\t\t\tconsole.warn(\n\t\t\t\tchalk.gray(`  Task ${taskId} depends on non-existent task ${depId}`)\n\t\t\t);\n\t\t});\n\t\tif (invalidDependencies.length > 5) {\n\t\t\tconsole.warn(\n\t\t\t\tchalk.gray(`  ...and ${invalidDependencies.length - 5} more`)\n\t\t\t);\n\t\t}\n\t}\n\n\t/**\n\t * Display results based on format\n\t */\n\tprivate displayResults(\n\t\tresult: ListTasksResult,\n\t\toptions: ListCommandOptions\n\t): void {\n\t\t// Resolve format: --json and --compact flags override --format option\n\t\tlet format: OutputFormat = options.format || 'text';\n\t\tif (options.json) {\n\t\t\tformat = 'json';\n\t\t} else if (options.compact) {\n\t\t\tformat = 'compact';","sourceCodeStart":488,"sourceCodeEnd":524,"githubUrl":"https://github.com/eyaltoledano/claude-task-master/blob/c0c98d367c55296bfe69e65680625b6db437af02/apps/cli/src/commands/list.command.ts#L488-L524","documentation":"Truncation notice from displayInvalidDependencyWarnings: when more than 5 invalid dependency references exist, only the first 5 are printed and this line reports the remaining count. Purely cosmetic throttling of warning output.","triggerScenarios":"Same flow as 705/706, but with invalidDependencies.length > 5 — i.e. six or more dangling dependency references in the loaded task set.","commonSituations":"Bulk deletion of tasks (e.g. removing a whole feature) leaving many dangling references; large imports with ID collisions; long-neglected tasks.json with accumulating integrity issues.","solutions":["Run an automated dependency repair/prune pass to clean all invalid references at once.","Audit tasks.json for references to deleted task IDs, not just the 5 shown.","Recreate missing tasks in bulk if the dependencies are still semantically valid."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// Don't rely on the truncated CLI output — count all dangling refs yourself\nconst dangling = findDanglingDeps(tasks);\nif (dangling.length > 5) {\n  console.log(`Full list (${dangling.length}):`, JSON.stringify(dangling, null, 2));\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Treat the '...and N more' line as a prompt to run a full audit, not the complete list.","Use automated repair to fix all references, not just the visible five.","Schedule periodic dependency-integrity checks on large task sets."],"tags":["data-integrity","dependencies","warning","cli"],"backgroundTag":"dangling-reference","analyzedSha":"c0c98d367c55296bfe69e65680625b6db437af02","analyzedAt":"2026-08-29T02:56:26.071Z","schemaVersion":2},"datasetVersion":"2026-08-29T07:17:48.351Z"}