Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jira issue create --no-input attempts to read stdin and hangs #641

Closed
realtime-neil opened this issue Jul 6, 2023 · 2 comments · Fixed by #655
Closed

jira issue create --no-input attempts to read stdin and hangs #641

realtime-neil opened this issue Jul 6, 2023 · 2 comments · Fixed by #655
Labels

Comments

@realtime-neil
Copy link
Contributor

realtime-neil commented Jul 6, 2023

Describe the bug
jira issue create --no-input hangs indefinitely, prompting for input.

Please provide following details

  1. JiraCLI Version:
    (Version="v1.4.0", GitCommit="", CommitDate="", GoVersion="go1.20.5", Compiler="gc", Platform="linux/amd64")
    
  2. Are you using Jira cloud or on-premise jira server?
    SERVER INFO
    -----------
    
    Version:         1001.0.0-SNAPSHOT
    Build Number:    100230
    Deployment Type: Cloud
    Default Locale:  en_US
    
  3. What operating system are you using? Also mention version.
    PRETTY_NAME="Ubuntu 22.04.2 LTS"
    NAME="Ubuntu"
    VERSION_ID="22.04"
    VERSION="22.04.2 LTS (Jammy Jellyfish)"
    VERSION_CODENAME=jammy
    ID=ubuntu
    ID_LIKE=debian
    HOME_URL="https://www.ubuntu.com/"
    SUPPORT_URL="https://help.ubuntu.com/"
    BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
    PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
    UBUNTU_CODENAME=jammy
    
  4. What terminal are you using? Also mention version.
    $ st -v
    st 0.9
    

To Reproduce

Steps to reproduce the behavior:

$ nohup jira issue create --no-input >/tmp/nohup.out ; echo $? ; cat /tmp/nohup.out
nohup: ignoring input and redirecting stderr to stdout
1
? Issue type  [Use arrows to move, type to filter]
> Task
  Story
  Bug
  Customer Issue
  Spike
  Initiative
  Customer Request
Error: read /dev/stdin: bad file descriptor

Expected behavior

  • no attempt to read /dev/stdin.
  • error message about missing information

Screenshots
not applicable

Additional context
not applicable

@ankitpokhrel
Copy link
Owner

Looks like this happens if we don't pass required params. Thank you for reporting!

# This one works
$ nohup jira issue create -tTask -s"Issue 641 test" --no-input

@ankitpokhrel
Copy link
Owner

This should be fixed with #655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants