Fig not working (No such file or directory)
Sanity checks
- [X] I have searched github.com/withfig/fig/issues and there are no duplicates of my issue
- [X] I have run
fig doctorin the affected terminal session - [X] I have run
fig restartand tested again (tell us if that fixed it)
Issue Details
Running almost any fig command except tweet, issue, and help results in No such file or directory (os error 2). Here is the result of fig doctor:
$ RUST_BACKTRACE=full fig doctor --verbose
Let's check if you're logged in...
✔ Logged into Fig
Let's check your dotfiles...
✔ ~/.bashrc contains valid fig hooks
✔ ~/.bash_profile contains valid fig hooks
✔ ~/.zshrc contains valid fig hooks
✔ ~/.zprofile contains valid fig hooks
Let's make sure Fig is running...
✔ Fig bin exists
✔ PATH contains ~/.local/bin
✔ Fig Integration
✔ Daemon
✔ Figterm
✔ Insertion lock does not exist
✔ PATH and PseudoTerminal PATH match
✔ Autocomplete dev mode
✔ Plugin dev mode
✔ Mission Control is loading from the correct URL
Let's check if your system is compatible...
● Fig's support for Linux 5.19.1-3-MANJARO - "Manjaro Linux" is in development. It may not work properly on your system.
Let's check fig diagnostic...
Failed to get context:
0: No such file or directory (os error 2)
Location:
fig_cli/src/cli/diagnostics.rs:238
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
<empty backtrace>
Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
✘ Doctor found errors. Please fix them and try again.
If you are not sure how to fix it, please open an issue with fig issue to let us know!
Or, email us at [email protected]!
Environment
fig-details:
- cli-version: 1.4.11
- desktop-version: 2.3.17
- figterm-version: 5.2.0
hardware-info:
- chip-id: 11th Gen Intel(R) Core(TM) i3-1125G4 @ 2.00GHz
- cores: 4
- mem: 7688.172 GB
os-info:
- kernel: 5.19.1-3-MANJARO
- distro: "Manjaro Linux"
- distro-build: rolling
environment:
- shell: /usr/bin/zsh
- terminal: <unknown>
- cwd: /home/advaith/Executables/AUR
- exe-path: /usr/bin/fig
- install-method: unknown
- env-vars:
- DISPLAY: :0
- FIG_INTEGRATION_VERSION: 8
- FIG_TERM: 1
- FIG_TERM_VERSION: 5.2.0
- FIG_WORKFLOWS_KEYBIND: ^f
- GLFW_IM_MODULE: ibus
- GTK_IM_MODULE: ibus
- PATH: /home/advaith/.pyenv/plugins/pyenv-virtualenv/shims:/home/advaith/.pyenv/shims:/home/advaith/.pyenv/bin:/home/advaith/.yarn/bin:/home/advaith/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/advaith/.fig/bin:/home/advaith/Tools/Mycroft/mycroft-core/bin
- QT_IM_MODULE: ibus
- SHELL: /bin/bash
- TERM: xterm-256color
- TERM_SESSION_ID: 03c2baa5-0523-4b7f-b020-85ffeb214e5c
- XDG_CURRENT_DESKTOP: KDE
- XDG_SESSION_DESKTOP: KDE
- XDG_SESSION_TYPE: x11
- XMODIFIERS: @im=ibus
- FIG_PID: 2960
Same issue here on Fedora Workstation 36/KDE/Alacritty/zsh/tmux. Happens sporadically, and a reboot usually fixes it for a while.
I ran RUST_BACKTRACE=full RUST_BACKTRACE=1 COLORBT_SHOW_HIDDEN=1 fig doctor (note the duplicate env vars I fudged), and got this:
// $ RUST_BACKTRACE=full RUST_BACKTRACE=1 COLORBT_SHOW_HIDDEN=1 fig doctor
● Fig's support for Linux 5.19.9-200.fc36.x86_64 - "Fedora Linux 36 (Thirty Six)" is in development. It may not work properly on your system.
Failed to get context:
0: No such file or directory (os error 2)
Location:
fig_cli/src/cli/diagnostics.rs:271
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: color_eyre::config::EyreHook::default::h5a22ddab5644b26b
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/color-eyre-0.6.2/src/config.rs:1038
2: color_eyre::config::EyreHook::into_eyre_hook::{{closure}}::h66e0f4cf0b8c2efa
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/color-eyre-0.6.2/src/config.rs:1094
3: eyre::capture_handler::h1c5c44b3fac435a4
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/eyre-0.6.8/src/lib.rs:605
4: eyre::error::<impl eyre::Report>::from_std::h4ade80bbf1b38ece
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/eyre-0.6.8/src/error.rs:87
5: eyre::error::<impl core::convert::From<E> for eyre::Report>::from::h375b6d77930e492c
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/eyre-0.6.8/src/error.rs:464
6: <core::result::Result<T,F> as core::ops::try_trait::FromResidual<core::result::Result<core::convert::Infallible,E>>>::from_residual::h6eb3131c77c09e89
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/result.rs:2125
7: fig_cli::cli::diagnostics::get_diagnostics::{{closure}}::h761975e213f7ff40
at /root/project/desktop/fig_cli/src/cli/diagnostics.rs:271
8: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h1cbee9900dca8175
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/future/mod.rs:91
9: fig_cli::cli::doctor::run_checks_with_context::{{closure}}::h81a2a0c5b9e5dfbc
at /root/project/desktop/fig_cli/src/cli/doctor.rs:1985
10: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hff44c3e0bb3761d4
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/future/mod.rs:91
11: fig_cli::cli::doctor::doctor_cli::{{closure}}::{{closure}}::hac7a59cee0d63f2b
at /root/project/desktop/fig_cli/src/cli/doctor.rs:2278
12: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hc4bfa38334fc9414
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/future/mod.rs:91
13: fig_cli::cli::doctor::doctor_cli::{{closure}}::h59539c01176a3e1c
at /root/project/desktop/fig_cli/src/cli/doctor.rs:2316
14: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h7c44922c890c7eef
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/future/mod.rs:91
15: fig_cli::cli::doctor::DoctorArgs::execute::{{closure}}::hf2ffb8c56605054e
at /root/project/desktop/fig_cli/src/cli/doctor.rs:91
16: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h18e14560fdc7d316
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/future/mod.rs:91
17: fig_cli::cli::Cli::execute::{{closure}}::h732cb2aef6ae59dc
at /root/project/desktop/fig_cli/src/cli/mod.rs:302
18: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h888f668c06df5310
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/future/mod.rs:91
19: <tokio::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll::h3fd264a156042edb
at /root/.cargo/git/checkouts/tokio-d394b3ffdb910d14/a17a46a/tokio/src/future/maybe_done.rs:68
20: fig_cli::main::{{closure}}::{{closure}}::hfa73b17add3ec6f1
at /root/.cargo/git/checkouts/tokio-d394b3ffdb910d14/a17a46a/tokio/src/macros/join.rs:116
21: <tokio::future::poll_fn::PollFn<F> as core::future::future::Future>::poll::h8c0780d958779571
at /root/.cargo/git/checkouts/tokio-d394b3ffdb910d14/a17a46a/tokio/src/future/poll_fn.rs:38
22: fig_cli::main::{{closure}}::hce45c5afc7df2513
at /root/project/desktop/fig_cli/src/main.rs:121
23: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::heb1f942ebdf722f7
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/future/mod.rs:91
24: tokio::park::thread::CachedParkThread::block_on::{{closure}}::h7fc3e99d9c7e736c
at /root/.cargo/git/checkouts/tokio-d394b3ffdb910d14/a17a46a/tokio/src/park/thread.rs:267
25: tokio::coop::with_budget::{{closure}}::hf15050a7358f02dc
at /root/.cargo/git/checkouts/tokio-d394b3ffdb910d14/a17a46a/tokio/src/coop.rs:102
26: std::thread::local::LocalKey<T>::try_with::h874bb0085e95f082
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/thread/local.rs:445
27: std::thread::local::LocalKey<T>::with::h098d4eed6da79266
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/thread/local.rs:421
28: tokio::coop::with_budget::h4d8604326ddd1c4b
at /root/.cargo/git/checkouts/tokio-d394b3ffdb910d14/a17a46a/tokio/src/coop.rs:95
29: tokio::coop::budget::h03449b4494d35438
at /root/.cargo/git/checkouts/tokio-d394b3ffdb910d14/a17a46a/tokio/src/coop.rs:72
30: tokio::park::thread::CachedParkThread::block_on::h32e38e8e24bd92a6
at /root/.cargo/git/checkouts/tokio-d394b3ffdb910d14/a17a46a/tokio/src/park/thread.rs:267
31: tokio::runtime::enter::Enter::block_on::h2e5668da3df35e70
at /root/.cargo/git/checkouts/tokio-d394b3ffdb910d14/a17a46a/tokio/src/runtime/enter.rs:152
32: tokio::runtime::thread_pool::ThreadPool::block_on::h01faf4499908f166
at /root/.cargo/git/checkouts/tokio-d394b3ffdb910d14/a17a46a/tokio/src/runtime/thread_pool/mod.rs:90
33: tokio::runtime::Runtime::block_on::hd1005900449bcd7c
at /root/.cargo/git/checkouts/tokio-d394b3ffdb910d14/a17a46a/tokio/src/runtime/mod.rs:488
34: fig_cli::main::h5f383b6231db97d8
at /root/project/desktop/fig_cli/src/main.rs:134
35: core::ops::function::FnOnce::call_once::h917cbb8a9198f6c0
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/ops/function.rs:248
36: std::sys_common::backtrace::__rust_begin_short_backtrace::hbc5901896739eda3
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/sys_common/backtrace.rs:122
37: std::rt::lang_start::{{closure}}::h75b3cc5e0ea2e743
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/rt.rs:145
38: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h9b744c0fefdc9393
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/ops/function.rs:280
39: std::panicking::try::do_call::h59d084564bdc9764
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:492
40: std::panicking::try::h2fac5eedc085d56a
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:456
41: std::panic::catch_unwind::h9421814242205f2b
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panic.rs:137
42: std::rt::lang_start_internal::{{closure}}::h8a22d2e3a34292ac
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/rt.rs:128
43: std::panicking::try::do_call::h1de2ec4bfbe13450
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:492
44: std::panicking::try::hcd7e19b491fbdedd
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panicking.rs:456
45: std::panic::catch_unwind::he7eb357483743dba
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/panic.rs:137
46: std::rt::lang_start_internal::h37683b205c9af4e4
at /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/std/src/rt.rs:128
47: main<unknown>
at <unknown source file>:<unknown line>
Fixing the env vars actually causes my shell to hang until I kill it, but it outputs:
// $ RUST_BACKTRACE=full COLORBT_SHOW_HIDDEN=1 fig doctor
● Fig's support for Linux 5.19.9-200.fc36.x86_64 - "Fedora Linux 36 (Thirty Six)" is in development. It may not work properly on your system.
Failed to get context:
0: No such file or directory (os error 2)
Location:
fig_cli/src/cli/diagnostics.rs:271
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: color_eyre::config::EyreHook::default::h5a22ddab5644b26b
The application panicked (crashed).
Message: called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
Location: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/color-eyre-0.6.2/src/config.rs:284
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: color_eyre::config::PanicHook::panic_report::h351490d5be0a1405
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/color-eyre-0.6.2/src/config.rs:1002The application panicked (crashed).
Message: called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
Location: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/color-eyre-0.6.2/src/config.rs:284
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: color_eyre::config::PanicHook::panic_report::h351490d5be0a1405
at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/color-eyre-0.6.2/src/config.rs:1002thread panicked while processing panic. aborting.
I hope this is helpful in some way.
any fix to this I am facing the same error.
try this:
fig install --dotfiles
then:
fig restart