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

Error when trying to generate log for repo without tags #32

Closed
rodrigopavezi opened this Issue Nov 21, 2014 · 4 comments

Comments

Projects
None yet
2 participants
@rodrigopavezi

Hi There,

I am getting the following error when running the command with my token.

Generating changelog:
Sorting tags..
Generating log..
/Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/lib/github_changelog_generator.rb:326:in `get_time_of_tag': undefined method `[]' for nil:NilClass (NoMethodError)
        from /Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/lib/github_changelog_generator.rb:207:in `generate_log_between_tags'
        from /Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/lib/github_changelog_generator.rb:246:in `generate_log_before_tag'
        from /Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/lib/github_changelog_generator.rb:159:in `generate_log_for_all_tags'
        from /Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/lib/github_changelog_generator.rb:128:in `compund_changelog'
        from /Library/Ruby/Gems/2.0.0/gems/github_changelog_generator-1.2.0/bin/github_changelog_generator:4:in `<top (required)>'
        from /usr/bin/github_changelog_generator:23:in `load'
        from /usr/bin/github_changelog_generator:23:in `<main>'

Would you know what should I do?

Thanks!

@skywinder

This comment has been minimized.

Show comment
Hide comment
@skywinder

skywinder Nov 21, 2014

Member

Hi!
undefined method [] - It seems, that script didn't find any tags in your repo and I didn't check that array can benil in the script.
Make sure that you push all tags to GitHub. git push --tags

Please give me more information about your running command params. (at least user-name and project-name) to debug.

Member

skywinder commented Nov 21, 2014

Hi!
undefined method [] - It seems, that script didn't find any tags in your repo and I didn't check that array can benil in the script.
Make sure that you push all tags to GitHub. git push --tags

Please give me more information about your running command params. (at least user-name and project-name) to debug.

@skywinder skywinder added the bug label Nov 21, 2014

@rodrigopavezi

This comment has been minimized.

Show comment
Hide comment
@rodrigopavezi

rodrigopavezi Dec 1, 2014

@skywinder creating a tag fixed the problem. thanks!

@skywinder creating a tag fixed the problem. thanks!

@skywinder

This comment has been minimized.

Show comment
Hide comment
@skywinder

skywinder Dec 1, 2014

Member

You're welcome!
I'll fix it and add some friendly output for that case in next version.

Member

skywinder commented Dec 1, 2014

You're welcome!
I'll fix it and add some friendly output for that case in next version.

@skywinder skywinder added this to the 1.2.2 milestone Dec 1, 2014

@rodrigopavezi

This comment has been minimized.

Show comment
Hide comment
@rodrigopavezi

rodrigopavezi Dec 1, 2014

great, thanks!

great, thanks!

@skywinder skywinder changed the title from Error when trying to generate to Error when trying to generate log for repo without tags Dec 1, 2014

@skywinder skywinder removed this from the 1.2.2 milestone Dec 22, 2014

@skywinder skywinder closed this in 6da115c Jan 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment