{"record":{"id":"594e9f864a098b0e","repo":"atuinsh/atuin","slug":"script-not-found","errorCode":null,"errorMessage":"script '{}' not found","messagePattern":"script '(.+?)' not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/atuin/src/command/client/scripts.rs","lineNumber":435,"sourceCode":"                println!(\"tags: []\");\n            } else {\n                println!(\"tags:\");\n                for tag in &script.tags {\n                    println!(\"  - {tag}\");\n                }\n            }\n\n            println!(\"shebang: {}\", script.shebang);\n\n            println!(\"script: |\");\n            // Indent the script content for proper YAML multiline format\n            for line in script.script.lines() {\n                println!(\"  {line}\");\n            }\n\n            Ok(())\n        } else {\n            bail!(\"script '{}' not found\", get.name);\n        }\n    }\n\n    #[allow(clippy::cognitive_complexity)]\n    async fn handle_edit(\n        _settings: &Settings,\n        edit: Edit,\n        script_store: ScriptStore,\n        script_db: atuin_scripts::database::Database,\n    ) -> Result<()> {\n        debug!(\"editing script {:?}\", edit);\n        // Find the existing script\n        let existing_script = script_db.get_by_name(&edit.name).await?;\n        debug!(\"existing script {:?}\", existing_script);\n\n        if let Some(mut script) = existing_script {\n            // Update the script with new values if provided\n            if let Some(description) = edit.description {","sourceCodeStart":417,"sourceCodeEnd":453,"githubUrl":"https://github.com/atuinsh/atuin/blob/900007c48045867e7f44b0f9bc55ad9dbe99ee0d/crates/atuin/src/command/client/scripts.rs#L417-L453","documentation":"`atuin script get <name>` bails with this when no script matching the given name exists in the script database. handle_get only prints the script when the DB lookup returns Some; the None branch produces this message with the requested name interpolated.","triggerScenarios":"`atuin script get <name>` where `script_db.get_by_name(name)` returns None.","commonSituations":"Misspelled name, script not yet synced to this machine, case mismatch, or the script was removed after sync from another host.","solutions":["Run `atuin script list` and copy the exact name","Run `atuin sync` and `atuin store rebuild` to pull scripts from the server","Recreate the script if it was intentionally deleted"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"let exists = script_db.get_by_name(&name).await?.is_some();\nif !exists { eprintln!(\"unknown script: {name}\"); return Ok(()); }\n","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Verify the name via `atuin script list` before `script get`","Keep scripts synced so all hosts share the same name space"],"tags":["cli","scripts","not-found"],"backgroundTag":"entity-not-found","analyzedSha":"900007c48045867e7f44b0f9bc55ad9dbe99ee0d","analyzedAt":"2026-09-19T12:52:51.491Z","contentChangedAt":"2026-09-19T12:52:51.491Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}