gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

`run_shell_command` results in `NameError` when attempting `git clone` of gemini-cli

Open bxw91 opened this issue 1 year ago • 7 comments

What happened?

Description of the problem: The run_shell_command tool reports a NameError when attempting to execute a git clone command. This prevents the repository from being cloned and further interaction with it.

Steps to reproduce:

  1. Attempt to use run_shell_command with a command like:
    git clone https://github.com/google-gemini/gemini-cli
    
  2. Observe the output.

Expected behavior: The git clone command is expected to execute successfully, and the repository should be cloned.

Actual behavior: Instead, the run_shell_command tool reports a NameError, and the command does not execute.

Error message (example, replace with actual message):

NameError: name 'run_shell_command' is not defined

Environment:

  • Operating System: Ubuntu
  • Tool: Gemini CLI 0.1.13
  • Context: Attempting to interact with a GitHub repository.

What did you expect to happen?

not error

Client information

$ gemini /about
# paste output here

Login information

No response

Anything else we need to know?

No response

bxw91 avatar Jul 19 '25 23:07 bxw91

It is due to the internal /tools glitch, in my opinion. My end-user's advice: Plan A: "Switch it off and on" (=wipe and reinstall), as the fastest method.
Plan B: test an older version of Gemini CLI.

ver. 2.0, style fixed now

Manamama avatar Jul 20 '25 03:07 Manamama

Closing this issue as it appears to be a comment offering a workaround.

srithreepo avatar Jul 21 '25 05:07 srithreepo

Internal tools glitch. "Switch it off and on" (=wipe and reinstall). Fastest. Plan B: test an older version.

this problem above I have received using gemini-cli while gemini-cli was trying to get an answer searching inside this repository, not while installing gemini-cli

bxw91 avatar Jul 21 '25 21:07 bxw91

@srithreepo your comment https://github.com/google-gemini/gemini-cli/issues/4522#issuecomment-3095220611 is wrong in decoding the commenter's (mine) intent. Reread my advice. (BTW, you had marked three of my comments that way, I guess doing so via some script ...)

Manamama avatar Jul 22 '25 02:07 Manamama

Yes good catch ! I was testing a script which was meant to only adjust labels and it seems to have closed a few issues, I've reopened all of them (hopefully)

srithreepo avatar Jul 22 '25 03:07 srithreepo

This issue has been automatically marked as stale due to 60 days of inactivity. It will be closed in 14 days if no further activity occurs.

github-actions[bot] avatar Sep 21 '25 02:09 github-actions[bot]

Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.

It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.

Thank you for your contribution!

gemini-cli[bot] avatar Dec 03 '25 21:12 gemini-cli[bot]