-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Description
Describe the bug
when i try to use
gh pr create
i get an error
Steps to reproduce the behavior
- clone any repo
- switch to new branch
- press
gh pr create
Expected vs actual behavior
-
expected
prompt the regular github cli flow -
actual
an error throw to the console
Logs
gh pr create
Creating pull request for ***** into master in *****
? Title (Add ability for more then one invalid attributes) p
anic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1728325]
goroutine 1 [running]:
github.com/AlecAivazis/survey/v2/terminal.(*RuneReader).ReadLine(0xc0004706c0, 0x0, 0x0, 0xc000010018, 0x1abd2c0, 0xc000010020, 0xc0004706c0)
github.com/AlecAivazis/survey/[email protected]/terminal/runereader.go:56 +0x435
github.com/AlecAivazis/survey/v2.(*Input).Prompt(0xc00041ecb0, 0xc000459388, 0x0, 0x0, 0x0, 0x0)
github.com/AlecAivazis/survey/[email protected]/input.go:62 +0x21b
github.com/AlecAivazis/survey/v2.Ask(0xc0004cffc0, 0x2, 0x2, 0x17f08e0, 0xc0004c5930, 0x0, 0x0, 0x0, 0xc0004cffc0, 0xc00059f830)
github.com/AlecAivazis/survey/[email protected]/survey.go:291 +0x557
github.com/cli/cli/command.glob..func10(0xc0004cffc0, 0x2, 0x2, 0x17f08e0, 0xc0004c5930, 0x0, 0x0, 0x0, 0xc0002629b0, 0xc0002629b0)
github.com/cli/cli/command/title_body_survey.go:58 +0x81
github.com/cli/cli/command.titleBodySurvey(0x1fee700, 0xc0004c5930, 0xc000118340, 0x1ac62e0, 0xc00049a000, 0x0, 0x0, 0x0, 0x0, 0xc0005c2029, ...)
github.com/cli/cli/command/title_body_survey.go:204 +0x365
github.com/cli/cli/command.prCreate(0x1fee700, 0x2034088, 0x0, 0x0, 0x0, 0x0)
github.com/cli/cli/command/pr_create.go:236 +0x24ec
github.com/spf13/cobra.(*Command).execute(0x1fee700, 0x2034088, 0x0, 0x0, 0x1fee700, 0x2034088)
github.com/spf13/[email protected]/command.go:842 +0x453
github.com/spf13/cobra.(*Command).ExecuteC(0x1fe9840, 0xc0000201c0, 0x2, 0x2)
github.com/spf13/[email protected]/command.go:950 +0x349
main.main()
github.com/cli/cli/cmd/gh/main.go:72 +0x2bd
go version go1.14.7 darwin/amd64
gh version 0.11.0 (2020-08-13)
ProductName: Mac OS X
ProductVersion: 10.15.5
BuildVersion: 19F101