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

colorls --git-status crashes with traceback #371

Closed
xbjfk opened this issue Jul 6, 2020 · 2 comments · Fixed by #372
Closed

colorls --git-status crashes with traceback #371

xbjfk opened this issue Jul 6, 2020 · 2 comments · Fixed by #372
Labels

Comments

@xbjfk
Copy link

xbjfk commented Jul 6, 2020

Running colorls with --git-status, colorls crashes with the following traceback:

Traceback (most recent call last):
        19: from /usr/bin/colorls:9:in `<main>'
        18: from /usr/bin/colorls:9:in `load'
        17: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/exe/colorls:26:in `<top (required)>'
        16: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/flags.rb:43:in `process'
        15: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/flags.rb:43:in `each_with_index'
        14: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/flags.rb:43:in `each'
        13: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/flags.rb:48:in `block in process'
        12: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/core.rb:48:in `ls'
        11: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/layout.rb:14:in `each_line'
        10: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/layout.rb:14:in `each'
         9: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/layout.rb:14:in `block in each_line'
         8: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/core.rb:49:in `block in ls'
         7: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/core.rb:301:in `ls_line'
         6: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/core.rb:301:in `each_with_index'
         5: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/core.rb:301:in `each'
         4: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/core.rb:302:in `block in ls_line'
         3: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/core.rb:295:in `fetch_string'
         2: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/core.rb:235:in `git_info'
         1: from /usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/core.rb:255:in `git_dir_info'
/usr/lib64/ruby/gems/2.5.0/gems/colorls-1.4.1/lib/colorls/git.rb:14:in `block in status': uninitialized constant ColorLS::Git::Set (NameError)
  • Type of issue: Bug in existing feature

Thanks in advance :)

avdv added a commit to avdv/colorls that referenced this issue Jul 7, 2020
@avdv avdv mentioned this issue Jul 7, 2020
5 tasks
@avdv
Copy link
Collaborator

avdv commented Jul 7, 2020

Hi. Thanks for the report! I cannot really reproduce this, so let's hope #372 fixes it for good...

@xbjfk
Copy link
Author

xbjfk commented Jul 7, 2020

#372 fixed this. Will close when merged.

@avdv avdv closed this as completed in #372 Jul 7, 2020
@avdv avdv added the bug label Jul 7, 2020
avdv added a commit to avdv/colorls that referenced this issue Sep 26, 2020
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