{"record":{"id":"15031db1aea5db2f","repo":"clockworklabs/SpacetimeDB","slug":"path-not-utf-8","errorCode":null,"errorMessage":"path not utf-8","messagePattern":"path not utf-8","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/cli/src/tasks/rust.rs","lineNumber":48,"sourceCode":"    build_debug: bool,\n) -> anyhow::Result<PathBuf> {\n    // Make sure that we have the wasm target installed\n    if !has_wasm32_target() {\n        if has_rust_up() {\n            cmd!(\"rustup\", \"target\", \"add\", \"wasm32-unknown-unknown\")\n                .run()\n                .context(\"Failed to install wasm32-unknown-unknown target with rustup\")?;\n        } else {\n            anyhow::bail!(\"wasm32-unknown-unknown target is not installed. Please install it.\");\n        }\n    }\n\n    if let Some(lint_dir) = lint_dir {\n        let mut err_count: u32 = 0;\n        let lint_dir = project_path.join(lint_dir);\n        for file in walkdir::WalkDir::new(lint_dir).into_iter() {\n            let file = file?;\n            let printable_path = file.path().to_str().ok_or(anyhow::anyhow!(\"path not utf-8\"))?;\n            if file.file_type().is_file() && file.path().extension().is_some_and(|ext| ext == \"rs\") {\n                let file = fs::File::open(file.path())?;\n                for (idx, line) in io::BufReader::new(file).lines().enumerate() {\n                    let line = line?;\n                    let line_number = idx + 1;\n                    for disallowed in &[\"println!\", \"print!\", \"eprintln!\", \"eprint!\", \"dbg!\"] {\n                        if line.contains(disallowed) {\n                            if err_count == 0 {\n                                eprintln!(\"\\nDetected nonfunctional print statements:\\n\");\n                            }\n                            eprintln!(\"{printable_path}:{line_number}: {line}\");\n                            err_count += 1;\n                        }\n                    }\n                }\n            }\n        }\n        if err_count > 0 {","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/clockworklabs/SpacetimeDB/blob/524b4487d949b61a07d4f39c862d1290259dfd20/crates/cli/src/tasks/rust.rs#L30-L66","documentation":"Error \"path not utf-8\" thrown in clockworklabs/SpacetimeDB.","triggerScenarios":"Thrown at crates/cli/src/tasks/rust.rs:48 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":"524b4487d949b61a07d4f39c862d1290259dfd20","analyzedAt":"2026-08-16T23:58:54.611Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}