deepseek-ai/deepseek-harness · error · TypertAnalysisError
typert: batch size must be a positive integer, received ${St
Error message
typert: batch size must be a positive integer, received ${String(batchSize)} What it means
Error "typert: batch size must be a positive integer, received ${String(batchSize)}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/typert/generator/src/analyzer.ts:363
return {
faces,
crossFaceLinks: [...this.crossFaceLinks.values()].sort(compareCrossFaceLinks),
}
}
/**
* Analyze an explicit package selection through bounded compiler programs.
* The resulting model is identical in shape to {@link analyze}; stable graph
* ids let repeated dependency declarations merge without flattening types.
* @param batchSize - maximum selected packages in one face program.
* @returns one merged workspace model.
*/
analyzeInBatches(batchSize = 8): WorkspaceModel {
if (this.options.packages === undefined) {
throw new TypertAnalysisError('typert: batched analysis requires an explicit package selection')
}
if (!Number.isInteger(batchSize) || batchSize < 1) {
throw new TypertAnalysisError(`typert: batch size must be a positive integer, received ${String(batchSize)}`)
}
const batches: WorkspaceModel[] = []
for (let index = 0; index < this.options.packages.length; index += batchSize) {
batches.push(new WorkspaceAnalyzer({
...this.options,
caches: this.caches,
packages: this.options.packages.slice(index, index + batchSize),
}).analyze())
}
return mergeWorkspaceModels(batches)
}
/**
* Discover package faces from public-export-reachable Cordis augmentations
* and explicit `@typert` roots without constructing a type-checker program.
* @returns contributors grouped by package with deterministic face order.
*/
discoverPackages(): DiscoveredTypertPackage[] {View on GitHub (pinned to b150a551b8)
Solutions
- Pass a positive integer batch size.
When it happens
Trigger: Thrown at packages/typert/generator/src/analyzer.ts:363 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/b588de0c92f264b3.
Report an issue: GitHub.