Bug: tea login edit doesn't indicate any errors (i.e. missing configuration or non-GUI environment) #561

Open
opened 2023-07-19 14:46:40 +00:00 by audibleptr · 0 comments

describe your environment

  • tea version used (tea -v): Version: 0.9.2 golang: 1.19.10
  • Gitea version used: 0.19.4
    • the issue only occurred after updating gitea recently
  • operating system: ALT Linux
  • I make use of...
    • non-standard default branch names (no main,master, or trunk)
    • .ssh/config or .gitconfig host aliases in my git remotes
    • ssh_agent or similar
    • non-standard ports for gitea and/or ssh: Gitea is on port 3000, not sure if this is the default. But this should not affect this issue.
    • something else that's likely to interact badly with tea: ...

Please provide the output of git remote -v (if the issue is related to tea not finding resources on Gitea): Not related.

describe the issue (observed vs expected behaviour)

  1. $ tea login edit

Actual result: If the config file has not been created yet, or the command is executed without a GUI (e.g. via ssh), then there is no output and nothing happens.

Expected result: The command should output error messages if it is unable to open a graphical editor or find the configuration and/or the command help or description should specify that it is only intended to be run in a graphical session.

Related: #226.

### describe your environment - tea version used (`tea -v`): `Version: 0.9.2 golang: 1.19.10` - [ ] I also reproduced the issue [with the latest master build](https://dl.gitea.io/tea/master) - Gitea version used: `0.19.4` - [ ] the issue only occurred after updating gitea recently - operating system: ALT Linux - I make use of... - [ ] non-standard default branch names (no `main`,`master`, or `trunk`) - [ ] .ssh/config or .gitconfig host aliases in my git remotes - [ ] ssh_agent or similar - [x] non-standard ports for gitea and/or ssh: Gitea is on port 3000, not sure if this is the default. But this should not affect this issue. - [ ] something else that's likely to interact badly with tea: ... Please provide the output of `git remote -v` (if the issue is related to tea not finding resources on Gitea): Not related. ### describe the issue (observed vs expected behaviour) 1. `$ tea login edit` Actual result: If the config file has not been created yet, or the command is executed without a GUI (e.g. via `ssh`), then there is no output and nothing happens. Expected result: The command should output error messages if it is unable to open a graphical editor or find the configuration and/or the command help or description should specify that it is only intended to be run in a graphical session. Related: https://gitea.com/gitea/tea/issues/226.
audibleptr added the
kind/bug
label 2023-07-19 14:46:40 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/tea#561
No description provided.