guard / guard-jasmine

The Swiss Army knife for automated Jasmine specs in your console.

Home Page:http://guard.github.io/guard-jasmine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

invalid byte sequence in US-ASCI, have no idea with google many times.

qx opened this issue · comments

commented

22:02:09 - ERROR - Guard::Jasmine failed to achieve its <run_on_modifications>, exception was:

[#] ArgumentError: invalid byte sequence in US-ASCII
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-jasmine-2.0.6/lib/guard/jasmine/runner.rb:180:in block in suite_from_first_describe' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-jasmine-2.0.6/lib/guard/jasmine/runner.rb:179:inforeach'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-jasmine-2.0.6/lib/guard/jasmine/runner.rb:179:in suite_from_first_describe' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-jasmine-2.0.6/lib/guard/jasmine/runner.rb:140:inquery_string_for_suite'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-jasmine-2.0.6/lib/guard/jasmine/runner.rb:118:in jasmine_suite' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-jasmine-2.0.6/lib/guard/jasmine/runner.rb:92:inrun_jasmine_spec'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-jasmine-2.0.6/lib/guard/jasmine/runner.rb:57:in block in run' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-jasmine-2.0.6/lib/guard/jasmine/runner.rb:55:ineach'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-jasmine-2.0.6/lib/guard/jasmine/runner.rb:55:in each_with_object' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-jasmine-2.0.6/lib/guard/jasmine/runner.rb:55:inrun'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-jasmine-2.0.6/lib/guard/jasmine.rb:166:in run_on_modifications' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:82:inblock in _supervise'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:79:in catch' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:79:in_supervise'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:61:in block (3 levels) in run_on_changes' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:56:ineach'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:56:in block (2 levels) in run_on_changes' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:119:inblock (2 levels) in _run_group_plugins'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:117:in each' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:117:inblock in _run_group_plugins'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:116:in catch' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:116:in_run_group_plugins'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:54:in block in run_on_changes' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:53:ineach'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/runner.rb:53:in run_on_changes' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/internals/queue.rb:23:inprocess'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/commander.rb:43:in start' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/cli/environments/valid.rb:16:instart_guard'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/cli.rb:122:in start' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/thor-0.19.1/lib/thor/command.rb:27:inrun'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/thor-0.19.1/lib/thor.rb:359:indispatch'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/thor-0.19.1/lib/thor/base.rb:440:in start' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/aruba_adapter.rb:32:inexecute'
[#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/lib/guard/aruba_adapter.rb:19:in execute!' [#] /Users/ok/.rvm/gems/ruby-2.1.9/gems/guard-2.13.0/bin/_guard-core:11:in

'
22:02:09 - INFO - Guard::Jasmine has just been fired

    guard (2.13.0)
      formatador (>= 0.2.4)
      listen (>= 2.7, <= 4.0)
      lumberjack (~> 1.0)
      nenv (~> 0.1)
      notiffany (~> 0.0)
      pry (>= 0.9.12)
      shellany (~> 0.0)
      thor (>= 0.18.1)
    guard-compat (1.2.1)
    guard-jasmine (2.0.6)
      childprocess (~> 0.5)
      guard (~> 2.8)
      guard-compat (~> 1.2)
      jasmine (~> 2.2)
      multi_json (~> 1.1)
      thor (~> 0.19)
      tilt

Thanks for the report @qx It looks to me like it's probably something in the spec that is outputting strings that aren't valid US-ASCII However I'm not sure why Ruby's encoding is set to US-ASCII, is there something else in your code that's setting that encoding? For Ruby 2.x, you can change the encoding via: http://ruby-doc.org/core-2.2.0/Encoding.html#method-c-default_external

commented

@nathanstitt I don't set encoding.But after I set iterm2's Environment -> set Locale variables automatically, it works ,
screen shot 2016-05-20 at 10 29 11

commented

on Terminal is the same problem, It seems system problem not jasmine.
screen shot 2016-05-20 at 10 33 05

Closing since it seems the issue is probably related to system encodings somewhere, sorry it took so long to circle back to this