gh-graph icon indicating copy to clipboard operation
gh-graph copied to clipboard

failed to run extension

Open etos opened this issue 4 years ago • 4 comments

installed without issues but sadly receiving the following error

[I] ⋊> ~ gh graph                                                                                                                                                                                                                                  23:18:18
failed to run extension: fork/exec /Users/dan/.local/share/gh/extensions/gh-graph/gh-graph: no such file or directory⏎

etos avatar Sep 08 '21 22:09 etos

I can't reproduce. That seems to be not an error of gh-graph, but an error of gh.

Is there the file? What is returned by ls -ll /Users/dan/.local/share/gh/extensions/gh-graph/?

I think the installation is failed...

kawarimidoll avatar Sep 09 '21 12:09 kawarimidoll

Thanks for checking 👍

total 24
-rw-r--r--  1 dan  staff  1096  8 Sep 01:10 LICENSE
-rw-r--r--  1 dan  staff   949  8 Sep 01:10 README.md
-rwxr-xr-x  1 dan  staff  3205  8 Sep 01:10 gh-graph

etos avatar Sep 09 '21 20:09 etos

There is the file, but no such file or directory occurs? That is curious 🤔

Can you try some checks below?

1: run the script directly

/Users/dan/.local/share/gh/extensions/gh-graph/gh-graph

2: reinstall and run

gh extension remove gh-graph
gh extension install kawarimidoll/gh-graph
gh graph

3: run other extension

gh extension install mattn/gh-ost
gh ost

kawarimidoll avatar Sep 09 '21 21:09 kawarimidoll

Maybe Bash is not installed on the system. My system (FreeBSD 13.0) does not have bash and I reproduced this error.

% which bash
bash: Command not found.
% gh graph
failed to run extension: fork/exec /home/mkn/.local/share/gh/extensions/gh-graph/gh-graph: no such file or directory

KusaReMKN avatar Mar 27 '22 11:03 KusaReMKN