{"record":{"id":"1b8239ef1b15b9ec","repo":"plandex-ai/plandex","slug":"failed-to-get-map-file-details-for-s-v","errorCode":null,"errorMessage":"failed to get map file details for %s: %v","messagePattern":"failed to get map file details for (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/cli/lib/context_load.go","lineNumber":485,"sourceCode":"\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif !params.DefsOnly {\n\t\t\t\t\t\t\tcontextMu.Lock()\n\t\t\t\t\t\t\tif totalSize+size > shared.MaxContextBodySize {\n\t\t\t\t\t\t\t\tfilesSkippedAfterSizeLimit = append(filesSkippedAfterSizeLimit, path)\n\t\t\t\t\t\t\t\tcontextMu.Unlock()\n\t\t\t\t\t\t\t\terrCh <- nil\n\t\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttotalSize += size\n\t\t\t\t\t\t\tcontextMu.Unlock()\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif params.DefsOnly {\n\t\t\t\t\t\t\tres, err := getMapFileDetails(path, size, totalSize)\n\t\t\t\t\t\t\tif err != nil {\n\t\t\t\t\t\t\t\terrCh <- fmt.Errorf(\"failed to get map file details for %s: %v\", path, err)\n\t\t\t\t\t\t\t\treturn\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcontextMu.Lock()\n\t\t\t\t\t\t\tdefer contextMu.Unlock()\n\n\t\t\t\t\t\t\tif currentMapInputBatch.NumFiles()+1 > shared.ContextMapMaxBatchSize || currentMapInputBatch.TotalSize()+size > shared.ContextMapMaxBatchBytes {\n\t\t\t\t\t\t\t\tcurrentMapInputBatch = shared.FileMapInputs{}\n\t\t\t\t\t\t\t\tmapInputBatches = append(mapInputBatches, currentMapInputBatch)\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcurrentMapInputBatch[path] = res.mapContent\n\t\t\t\t\t\t\tmapSize += res.size\n\t\t\t\t\t\t\tmapInputShas[path] = res.shaVal\n\t\t\t\t\t\t\tmapInputTokens[path] = res.tokens\n\t\t\t\t\t\t\tmapInputSizes[path] = res.size\n\n\t\t\t\t\t\t\tif len(res.mapFilesTruncatedTooLarge) > 0 {","sourceCodeStart":467,"sourceCodeEnd":503,"githubUrl":"https://github.com/plandex-ai/plandex/blob/e2d772072efadbe41d2946d97d79be55532dbab5/app/cli/lib/context_load.go#L467-L503","documentation":"In the defs-only (map) load path, getMapFileDetails fails for a given file path while building map batches. Means parsing/mapping that file failed (read error, unsupported content, or internal map-generation error) and that file's map cannot be produced.","triggerScenarios":"Thrown at app/cli/lib/context_load.go:485 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the wrapped error to see why getMapFileDetails failed for that path","Verify the file is readable and is a text-ish source file","Exclude the problematic path from the load and retry"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e2d772072efadbe41d2946d97d79be55532dbab5","analyzedAt":"2026-09-05T20:56:53.631Z","contentChangedAt":"2026-09-05T20:56:53.631Z","schemaVersion":2},"datasetVersion":"2026-09-12T22:17:10.623Z"}