nikivdev/code · error
Cursor CLI not found
Error message
Cursor CLI not found
What it means
Error "Cursor CLI not found" thrown in nikivdev/code.
Source
Thrown at src/commit.rs:10171
return Ok(());
}
if cfg!(target_os = "macos") {
let status = Command::new("open")
.arg("-a")
.arg("Cursor")
.arg(repo_root)
.stdout(Stdio::null())
.stderr(Stdio::null())
.status()
.context("failed to launch Cursor")?;
if !status.success() {
bail!("failed to launch Cursor");
}
return Ok(());
}
bail!("Cursor CLI not found")
}
fn gitlens_commit_deeplink_url(repo_root: &Path, commit_sha: &str) -> Result<Url> {
let mut url = Url::parse(&format!("cursor://eamodio.gitlens/link/r/-/c/{commit_sha}"))
.context("failed to build GitLens commit deeplink")?;
url.query_pairs_mut()
.append_pair("path", &repo_root.display().to_string());
Ok(url)
}
fn open_cursor_gitlens_commit(repo_root: &Path, commit_sha: &str) -> Result<()> {
open_repo_in_cursor(repo_root)?;
// Give Cursor a moment to bind the repo window before dispatching the GitLens deeplink.
std::thread::sleep(Duration::from_millis(300));
let deeplink = gitlens_commit_deeplink_url(repo_root, commit_sha)?;
let status = if cfg!(target_os = "macos") {View on GitHub (pinned to a747e741ae)
When it happens
Trigger: Thrown at src/commit.rs:10171 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/c5c20ebdfe6fe7d9.
Report an issue: GitHub.