The terminal process /bin/zsh '-l', '-c', 'binocular-cli -c -f -p <path>'" terminated with exit code: 101
I've been able to use this on my other intel based Mac running Cursor and it works great, but not much luck on my work M3!
Cursor shows a prompt saying: The terminal process /bin/zsh '-l', '-c', 'binocular-cli -c -f -p <path>'" terminated with exit code: 101, however it doesn't seem to be a problem with cursor its the command itself.
I brew installed all the required libraries, and when I run this both in regular bash shell or zsh it gives me this:
bash-3.2$ export RUST_BACKTRACE=full
bash-3.2$ binocular-cli -c -f -p .
thread 'main' panicked at /Users/christian.toivola/.cargo/registry/src/index.crates.io-6f17d22bba15001f/binocular-cli-0.1.1/src/commands/open_editor.rs:34:23:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
stack backtrace:
0: 0x104137fd4 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::habbf9c4f641febb1
1: 0x10414efc8 - core::fmt::write::ha36a8060c13608ea
2: 0x1041358e4 - std::io::Write::write_fmt::h431832c8ebcc85c9
3: 0x104139150 - std::panicking::default_hook::{{closure}}::h4aa1f60327dfff6a
4: 0x104138d00 - std::panicking::default_hook::h4ebc6eb4ae179807
5: 0x104139b1c - std::panicking::rust_panic_with_hook::h6a84efe4dcab239c
6: 0x1041395f8 - std::panicking::begin_panic_handler::{{closure}}::h5eef292190467fef
7: 0x104138498 - std::sys::backtrace::__rust_end_short_backtrace::hd7e7925203f20af9
8: 0x1041392c0 - _rust_begin_unwind
9: 0x104154f94 - core::panicking::panic_fmt::h410d3f147658259b
10: 0x10415526c - core::result::unwrap_failed::h974e6b19638d9dc8
11: 0x1040cec60 - binocular_cli::commands::open_editor::open_on_editor::h923f0a9f540804f1
12: 0x1040cdf84 - binocular_cli::commands::default_fzf::exec_fzf::h5cc3f055f7a8a4a3
13: 0x1040ca024 - binocular_cli::main::h8cfc210b78312b8c
14: 0x1040ce568 - std::sys::backtrace::__rust_begin_short_backtrace::h040d9244771d9fcc
15: 0x1040cbc40 - std::rt::lang_start::{{closure}}::h07500ee08c78ab0e
16: 0x104131f5c - std::rt::lang_start_internal::h9e88109c8deb8787
17: 0x1040ca488 - _main
Have a solution to this been found?
@EsinShadrach I will dig into the code when I can to see what is causing this but if someone dig before me I would be happy to see a fix thanks
Make sure you have all the dependencies listed in https://github.com/jpcrs/binocular?tab=readme-ov-file#dependencies. I had this same error because I didn't have fd installed.
I found that the code CLI isn't installed by default. So I had to run this command manually:
If you check the file location in the error, it's related to the code or code-insiders CLI: