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

Getting runtime error while want to see help for 'date' #63

Closed
oltoko opened this issue Sep 21, 2017 · 4 comments
Closed

Getting runtime error while want to see help for 'date' #63

oltoko opened this issue Sep 21, 2017 · 4 comments
Assignees
Labels

Comments

@oltoko
Copy link

oltoko commented Sep 21, 2017

Description

I want to see the description of the date generator and it gives me a runtime error!

Steps To Reproduce

Use Version v1.1.0 of fakedata installed with brew install lucapette/tap/fakedata on macOS 10.12.6.
Type fakedata -g date into a Terminal.

Expected result

The description of the date generator

Actual result

The following was printed in the Terminal:

Description: random date in the format YYYY-MM-DD. By default, it generates dates in the last year

Example:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x112b8ad]

goroutine 1 [running]:
main.main()
	/Users/lucapette/src/github.com/lucapette/fakedata/main.go:127 +0x9dd
@lucapette lucapette added the bug label Sep 21, 2017
@lucapette
Copy link
Owner

@oltoko thank you for such a great report! I'll try to get to it as soon as I can!

@KevinGimbel
Copy link
Collaborator

@lucapette I took a quick look and it seems to be related to generators which take arguments.

$ fakedata -g int
Description: positive integer between 1 and 1000

Example:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x112b8ad]

goroutine 1 [running]:
main.main()
	/Users/lucapette/src/github.com/lucapette/fakedata/main.go:127 +0x9dd
$ fakedata -g enum
Description: value from an enum. By default, the enum is foo,bar,baz. It accepts a list of comma-separated values

Example:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x112b8ad]

goroutine 1 [running]:
main.main()
	/Users/lucapette/src/github.com/lucapette/fakedata/main.go:127 +0x9dd

@lucapette lucapette self-assigned this Sep 21, 2017
lucapette added a commit that referenced this issue Sep 21, 2017
@lucapette
Copy link
Owner

@oltoko I just released v1.1.1 that fixes this bug. thank you so much for reporting it!

@oltoko
Copy link
Author

oltoko commented Sep 21, 2017

It worked! This was an instant fix, thank you very much!

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

No branches or pull requests

3 participants