Incompatible character encoding?
We're seeing an error when running Ruby Test:Unit tests on TeamCity 6.5.6
The test passes but shows up as a failure because of the error
Any ideas?
------- Stdout: -------
7 tests, 18 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
Test suite finished: 0.768 seconds
------- Stderr: -------
each at org/jruby/RubyArray.java:1612
notify_listeners at /usr/local/rvm/gems/jruby-1.6.5.1/gems/test-unit-2.4.3/lib/test/unit/util/observable.rb:78
run_suite at /usr/local/rvm/gems/jruby-1.6.5.1/gems/test-unit-2.4.5/lib/test/unit/ui/testrunnermediator.rb:55
run at /usr/local/rvm/gems/jruby-1.6.5.1/gems/test-unit-2.4.3/lib/test/unit/testsuite.rb:59
run at /usr/local/rvm/gems/jruby-1.6.5.1/gems/test-unit-2.4.3/lib/test/unit/testsuite.rb:53
run_suite at /usr/local/rvm/gems/jruby-1.6.5.1/gems/test-unit-2.4.5/lib/test/unit/ui/testrunnermediator.rb:54
run_suite at /root/TeamCity/plugins/rake-runner/lib/rb/patch/testunit/test/unit/ui/testrunnermediator.rb:41
start_mediator at /root/TeamCity/plugins/rake-runner/lib/rb/patch/testunit/test/unit/ui/teamcity/testrunner.rb:108
start at /root/TeamCity/plugins/rake-runner/lib/rb/patch/testunit/test/unit/ui/teamcity/testrunner.rb:96
run at /usr/local/rvm/gems/jruby-1.6.5.1/gems/test-unit-2.4.3/lib/test/unit/ui/testrunnerutilities.rb:24
run at /usr/local/rvm/gems/jruby-1.6.5.1/gems/test-unit-2.4.5/lib/test/unit/autorunner.rb:368
run at /usr/local/rvm/gems/jruby-1.6.5.1/gems/test-unit-2.4.5/lib/test/unit/autorunner.rb:58
(root) at /usr/local/rvm/gems/jruby-1.6.5.1/gems/test-unit-2.4.3/lib/test/unit.rb:326
org.jruby.exceptions.RaiseException: (SystemExit) exit
SyntaxError: (RegexpError) incompatible character encoding: /\u0085/
replace_escaped_symbols at /root/TeamCity/plugins/rake-runner/lib/rb/patch/common/teamcity/utils/service_message_factory.rb:192
create_message at /root/TeamCity/plugins/rake-runner/lib/rb/patch/common/teamcity/utils/service_message_factory.rb:235
each at org/jruby/RubyHash.java:1175
map at org/jruby/RubyEnumerable.java:728
create_message at /root/TeamCity/plugins/rake-runner/lib/rb/patch/common/teamcity/utils/service_message_factory.rb:235
create_msg_error at /root/TeamCity/plugins/rake-runner/lib/rb/patch/common/teamcity/utils/service_message_factory.rb:137
process_exception at /root/TeamCity/plugins/rake-runner/lib/rb/runner/rake_ext.rb:145
run at /root/TeamCity/plugins/rake-runner/lib/rb/runner/rake_ext.rb:181
(root) at /root/TeamCity/plugins/rake-runner/lib/rb/runner/rakerunner.rb:40
Step Rake failed
Please sign in to leave a comment.
Andy,
Seems like this was fixed in the scope of RUBY-9615 (RubyMine and TeamCity share the affected code).
The fix should be available in TeamCity 7.0. Can be already tried in EAP builds.
As a workaround you can try to patch the file from the stacktrace adding "# encoding: UTF-8" into it.
Thank you - that fixed the problem. For anyone else running into it, the fixed file lives on your agent machine.