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

NoMethodError: undefined method `length' for nil:NilClass #5

Open
mattk7 opened this issue Dec 2, 2016 · 0 comments
Open

NoMethodError: undefined method `length' for nil:NilClass #5

mattk7 opened this issue Dec 2, 2016 · 0 comments

Comments

@mattk7
Copy link

mattk7 commented Dec 2, 2016

Hi,

I installed the language-identifier but once I run the example (i.e. echo "This is absolutelty great" | language-identifier ) I get the following error:

NoMethodError: undefined method `length' for nil:NilClass
             short_input? at /home/user/.gem/jruby/2.3.1/gems/opener-language-identifier-4.2.2/lib/opener/language_identifier/detector.rb:166
       determine_profiles at /home/user/.gem/jruby/2.3.1/gems/opener-language-identifier-4.2.2/lib/opener/language_identifier/detector.rb:158
             new_detector at /home/user/.gem/jruby/2.3.1/gems/opener-language-identifier-4.2.2/lib/opener/language_identifier/detector.rb:112
                   detect at /home/user/.gem/jruby/2.3.1/gems/opener-language-identifier-4.2.2/lib/opener/language_identifier/detector.rb:84
                      run at /home/user/.gem/jruby/2.3.1/gems/opener-language-identifier-4.2.2/lib/opener/language_identifier.rb:62
  block in configure_slop at /home/user/.gem/jruby/2.3.1/gems/opener-language-identifier-4.2.2/lib/opener/language_identifier/cli.rb:74
                   parse! at /home/user/.gem/jruby/2.3.1/gems/slop-3.6.0/lib/slop.rb:260
                    parse at /home/user/.gem/jruby/2.3.1/gems/slop-3.6.0/lib/slop.rb:211
                      run at /home/user/.gem/jruby/2.3.1/gems/opener-language-identifier-4.2.2/lib/opener/language_identifier/cli.rb:20
                   <main> at /home/user/.gem/jruby/2.3.1/gems/opener-language-identifier-4.2.2/bin/language-identifier:7
                     load at org/jruby/RubyKernel.java:977
                   <main> at /home/user/.gem/jruby/2.3.1/bin/language-identifier:22

Could you help me debug the error?

Thanks

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

No branches or pull requests

1 participant