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

invalid byte sequence in UTF-8 #22

Closed
njmery opened this issue Aug 17, 2012 · 1 comment
Closed

invalid byte sequence in UTF-8 #22

njmery opened this issue Aug 17, 2012 · 1 comment

Comments

@njmery
Copy link

njmery commented Aug 17, 2012

when I execute:

bundle exec cane --abc-glob '{lib,spec}/*/.rb' --abc-max 15

this error appears:

gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane/style_check.rb:28:in `violations_for_line': invalid byte sequence in UTF-8 (ArgumentError)
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane/style_check.rb:14:in `block (2 levels) in violations'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane/style_check.rb:42:in `each_line'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane/style_check.rb:42:in `each'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane/style_check.rb:42:in `map'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane/style_check.rb:42:in `with_index'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane/style_check.rb:42:in `map_lines'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane/style_check.rb:13:in `block in violations'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane/style_check.rb:12:in `map'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane/style_check.rb:12:in `violations'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane.rb:41:in `block in violations'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane.rb:39:in `each'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane.rb:39:in `map'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane.rb:39:in `violations'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane.rb:29:in `run'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane.rb:9:in `run'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/lib/cane/cli.rb:13:in `run'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/gems/cane-1.4.0/bin/cane:5:in `<top (required)>'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/bin/cane:19:in `load'
    from /home/nicolas/.rvm/gems/ruby-1.9.2-p290/bin/cane:19:in `<main>'

any help would be appreciated.

RUBYGEMS VERSION: 1.8.10
RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i686-linux]

thanks!

@xaviershay
Copy link
Contributor

Thanks for the report. Are you able to provide a sample source file that replicates the problem?

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

2 participants