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

CLI version is Unknown in bug report :)

Open olcan opened this issue 1 year ago • 5 comments

Diagnostic Information

  • CLI Version: Unknown
  • Operating System: darwin v24.0.1
  • Sandbox Environment: sandbox-exec (minimal)
  • Model Version: gemini-2.5-pro-preview-05-06

olcan avatar May 20 '25 16:05 olcan

That's odd, I get a CLI version in my bug reports:

Diagnostic Information

  • CLI Version: 0.1.0
  • Operating System: darwin v20.18.0
  • Sandbox Environment: sandbox-exec (minimal)
  • Model Version: gemini-2.5-pro-preview-05-06

allenhutchison avatar May 20 '25 20:05 allenhutchison

i was using a linked (from head) binary in a non-gemini project... have you tested that?

On Tue, May 20, 2025 at 1:25 PM Allen Hutchison @.***> wrote:

allenhutchison left a comment (google-gemini/gemini-cli#446) https://github.com/google-gemini/gemini-cli/issues/446#issuecomment-2895743604

That's odd, I get a CLI version in my bug reports: Diagnostic Information

  • CLI Version: 0.1.0
  • Operating System: darwin v20.18.0
  • Sandbox Environment: sandbox-exec (minimal)
  • Model Version: gemini-2.5-pro-preview-05-06

— Reply to this email directly, view it on GitHub https://github.com/google-gemini/gemini-cli/issues/446#issuecomment-2895743604, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFWNPAHAVZD3ZF57VTVGCL27OFSFAVCNFSM6AAAAAB5Q55Y3KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQOJVG42DGNRQGQ . You are receiving this because you authored the thread.Message ID: @.***>

olcan avatar May 20 '25 20:05 olcan

ok, that's the problem. I'm using process.env.npm_package_version to grab the version, is there a better way to get it?

allenhutchison avatar May 20 '25 21:05 allenhutchison

i was using a linked (from head) binary in a non-gemini project... have you tested that? …

fwiw, I think a linked binary should still be considered a 'unknown' version since it loads directly from source. Or maybe 'development' would be more accurate?

KeijiBranshi avatar May 20 '25 21:05 KeijiBranshi

@KeijiBranshi would know best

olcan avatar May 20 '25 21:05 olcan