Skip to content

Instantly share code, notes, and snippets.

@scarver2
Created April 1, 2015 18:38
Show Gist options
  • Save scarver2/f136b23f4b34606f18a1 to your computer and use it in GitHub Desktop.
Save scarver2/f136b23f4b34606f18a1 to your computer and use it in GitHub Desktop.
i18n-tasks missing scan: invalid byte sequence in UTF-8
i18n-tasks health
/Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/data/file_system_base.rb:141:in `read_locale': undefined method `map' for nil:NilClass (NoMethodError)
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/data/file_system_base.rb:39:in `get'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/data.rb:27:in `block in data_forest'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/data.rb:26:in `each'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/data.rb:26:in `inject'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/data.rb:26:in `data_forest'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/command/commands/health.rb:13:in `health'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/command/commander.rb:22:in `run'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/cli.rb:39:in `run'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/cli.rb:18:in `block in start'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/cli.rb:190:in `auto_output_coloring'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/cli.rb:16:in `start'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/cli.rb:9:in `start'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/bin/i18n-tasks:13:in `<top (required)>'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/bin/i18n-tasks:23:in `load'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/bin/i18n-tasks:23:in `<main>'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
i18n-tasks missing
/Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/scanners/pattern_scanner.rb:14:in `scan': invalid byte sequence in UTF-8 (ArgumentError)
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/scanners/pattern_scanner.rb:14:in `scan_file'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/scanners/base_scanner.rb:53:in `block in keys'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/scanners/base_scanner.rb:88:in `block in traverse_files'
from /Users/scarver2/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/find.rb:48:in `block (2 levels) in find'
from /Users/scarver2/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/find.rb:47:in `catch'
from /Users/scarver2/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/find.rb:47:in `block in find'
from /Users/scarver2/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/find.rb:42:in `each'
from /Users/scarver2/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/find.rb:42:in `find'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/scanners/base_scanner.rb:80:in `traverse_files'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/scanners/base_scanner.rb:52:in `keys'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/used_keys.rb:17:in `used_tree'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/missing_keys.rb:83:in `missing_used_tree'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/missing_keys.rb:53:in `missing_used_forest'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/missing_keys.rb:25:in `block in missing_keys'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/missing_keys.rb:24:in `each'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/missing_keys.rb:24:in `inject'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/missing_keys.rb:24:in `missing_keys'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/command/commands/missing.rb:24:in `missing'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/command/commander.rb:22:in `run'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/cli.rb:39:in `run'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/cli.rb:18:in `block in start'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/cli.rb:190:in `auto_output_coloring'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/cli.rb:16:in `start'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/lib/i18n/tasks/cli.rb:9:in `start'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/gems/i18n-tasks-0.8.0/bin/i18n-tasks:13:in `<top (required)>'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/bin/i18n-tasks:23:in `load'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/bin/i18n-tasks:23:in `<main>'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/scarver2/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment