nikivdev/code · error
clipboard not supported on this platform
Error message
clipboard not supported on this platform
What it means
Error "clipboard not supported on this platform" thrown in nikivdev/code.
Source
Thrown at src/failure.rs:791
.arg("--input")
.stdin(Stdio::piped())
.spawn()
.context("failed to spawn xclip or xsel")?,
};
if let Some(stdin) = child.stdin.as_mut() {
stdin.write_all(text.as_bytes())?;
}
let status = child.wait()?;
if !status.success() {
bail!("clipboard command exited with status {}", status);
}
}
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
{
bail!("clipboard not supported on this platform");
}
Ok(true)
}
#[cfg(test)]
mod tests {
use super::{
FailureCopyFormat, FailureEntry, FailurePromptTool, FailureRecord, compact_output_tail,
render_ai_prompt, render_excerpt, render_prompt, repo_failure_dir, repo_failure_filename,
slug_component, unique_history_path,
};
use std::path::{Path, PathBuf};
#[test]
fn slug_component_normalizes_names() {
assert_eq!(slug_component("Designer Hot"), "designer-hot");
assert_eq!(slug_component("foo/bar_baz"), "foo-bar-baz");View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/failure.rs:791 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01).
Data as JSON: /api/errors/0316388c67217d05.
Report an issue: GitHub.