DopplerHQ / cli

The official CLI for interacting with your Doppler secrets and configuration.
https://docs.doppler.com
Apache License 2.0
214 stars 43 forks source link

[BUG] `doppler tui` loads no data and crashes on Tab press #424

Closed blakemorgan closed 9 months ago

blakemorgan commented 11 months ago

Describe the bug When I execute doppler run with no CLI param, the TUI loads with no data. Then when I press Tab, it crashes and I see the error Doppler Exception: runtime error: invalid memory address or nil pointer dereference

To Reproduce Steps to reproduce the behavior. Please include output from running the command with --debug.

  1. doppler tui --debug. TUI loads with no data
  2. Press "Tab" key
  3. See error:
Debug: Using config dir /Users/bmorgan/.doppler
Debug: Using config file /Users/bmorgan/.doppler/.doppler.yaml
Debug: Reading config file
Debug: Retrieving token from system keyring
Debug: Sending anonymous analytics payload: '{"command":"doppler.tui"}'
Debug: Performing HTTP POST to https://cli.doppler.com/v1/analytics
Doppler Exception: runtime error: invalid memory address or nil pointer dereference

Expected behavior The TUI should load with all Configs and Projects I have access to. Then when I press the Tab key, it should not crash

Screenshots

Screenshot 2023-07-27 at 9 55 24 AM

Desktop:

CLI Version: Version: v3.65.1

Additional context N/A

Piccirello commented 9 months ago

Fixed in #426