RakeRunner : format_exception_msg: Invalid escape character syntax

Hi


I am using Teamcity Pro 4.5.5 build 9103 and no matter what I do I get the above exception, I assume its an invalid escape character in my rakefile or something wrong in my config, any help on this would be greatly appreciated.


My rakefile works perfectly from the command line without teamcity / rake runner plugin


Is there a rake runner debug mode that will show where in my rakefile the issue is? The trace only references rakerunner.rb and rake_ext.rb.


c:\Ruby\bin/ruby.exe C:\TC\buildAgent\plugins\rake-runner\lib\rb\runner\rakerunner.rb --rakefile D:\CI\Projects\test\build\rakefile.rb ci-build "SPEC_OPTS=--require 'teamcity/spec/runner/formatter/teamcity/formatter' --format Spec::Runner::Formatter::TeamcityFormatter:matrix"
(in C:/BuildAgent/plugins/rake-runner/lib/rb/patch)
C:/TC/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:168:in `format_exception_msg': Invalid escape character syntax: /D:\ContinuousIntegration\Projects\mdm\build\rakefile.rb/ (RegexpError)
from C:/TC/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:168:in `find'
from C:/TC/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:168:in `each'
from C:/TC/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:168:in `find'
from C:/TC/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:168:in `format_exception_msg'
from C:/TC/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:144:in `process_exception'
from C:/TC/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:181:in `run'
from C:/TC/buildAgent/plugins/rake-runner/lib/rb/runner/rakerunner.rb:40



I attached an image of my rake runner config.


Cheers
ken

Attachment(s):
RakeRunner.bmp
7 comments
Comment actions Permalink

Hi Kenny,

I've filed an issue http://jetbrains.net/tracker/issue/TW-9640. By the way why working directory of your project points to sources of rakeRunner plugin?

0
Comment actions Permalink

Hi Roman

Thanks for the reply, I changed my working directory as I read on a blog that this was required for Rake Runner, can you confirm what the working directory should be for Rake Runner?

Cheers
Ken

0
Comment actions Permalink

As an author or rake-runner plugin I can confirm that such working directory isn't required for rake-runner plugin. This working directory will be used for rake process (on agent) and should be related to your project sources. Usually your working directory equals to checkout directory and you can leave field blank.

0
Comment actions Permalink

Hi Roman

I changed the working directory as discussed but this did not change my result; I get the same error message. I have managed to get the same rakefile running in Teamcity using the command line runner.

Cheers
Ken

0
Comment actions Permalink

I changed the working directory as discussed but this did not change my result;

I know, it shouldn't help with your bug

I have managed to get the same rakefile running in Teamcity using the command line runner.

I suppose the problem is in command line parameters format which rake runner plugin passes to TeamCity agent..

0
Comment actions Permalink

Has there been any update on this?  It seems you have to have the rakefile.rb in the checkout root for rake to work.  I've got mine in a build folder and getting the same error message.

0
Comment actions Permalink

Please watch for http://youtrack.jetbrains.net/issue/TW-11174
The problem should be solved soon, I hope we will be able to provide a patch.

0

Please sign in to leave a comment.