{"record":{"id":"cdd9ced49394a737","repo":"biomejs/biome","slug":"failed-to-spawn-console-thread","errorCode":null,"errorMessage":"failed to spawn console thread","messagePattern":"failed to spawn console thread","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/biome_cli/src/runner/crawler.rs","lineNumber":57,"sourceCode":"    fn crawl(\n        execution: &dyn Execution,\n        workspace: &dyn Workspace,\n        fs: &dyn FileSystem,\n        project_key: ProjectKey,\n        use_server: bool,\n        inputs: Vec<CrawlPath>,\n        collector: Self::Collector,\n        max_diagnostics: u32,\n        diagnostic_level: Severity,\n    ) -> Result<Output, CliDiagnostic> {\n        let (interner, recv_files) = PathInterner::new();\n        let (sender, receiver) = unbounded();\n\n        let (duration, evaluated_paths) = thread::scope(|s| {\n            let handler = thread::Builder::new()\n                .name(String::from(\"biome::console\"))\n                .spawn_scoped(s, || collector.run(receiver, recv_files, execution))\n                .expect(\"failed to spawn console thread\");\n\n            let ctx = CrawlerOptions::new(\n                fs,\n                workspace,\n                project_key,\n                use_server,\n                interner,\n                sender,\n                execution,\n                max_diagnostics,\n                diagnostic_level,\n            );\n            let (elapsed, evaluated_paths) = Self::crawl_inputs(fs, inputs, &ctx);\n\n            if use_server {\n                for changed_file in ctx.take_changed_files() {\n                    let result = workspace.change_file(ChangeFileParams {\n                        project_key,","sourceCodeStart":39,"sourceCodeEnd":75,"githubUrl":"https://github.com/biomejs/biome/blob/405dedb0ff65dd29927faf587f6542e3c29db248/crates/biome_cli/src/runner/crawler.rs#L39-L75","documentation":"Error \"failed to spawn console thread\" thrown in biomejs/biome.","triggerScenarios":"Thrown at crates/biome_cli/src/runner/crawler.rs:57 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check system thread limits (ulimit, cgroup constraints) if spawning the console thread fails.","Reduce concurrent thread usage before starting the crawler."],"exampleFix":"// Inspect the attached io::Error source for OS-level spawn failure details","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"405dedb0ff65dd29927faf587f6542e3c29db248","analyzedAt":"2026-08-20T00:25:09.682Z","contentChangedAt":"2026-08-20T00:25:09.682Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}