语法错误,意外的“:”,期待“)” - Rails 2.1.0
Syntax error, unexpected ':', expecting ')' - Rails 2.1.0
运行 rake 任务出现语法错误:
bundle exec rake test:read_message
ruby -v
2.1.0
/ruby/gems/2.1.0/gems/spring-1.7.1/lib/spring/client/run.rb:76: syntax error, unexpected ':', expecting ')' (SyntaxError)
..._env, env.server_command, out: File::NULL)
/usr/lib/ruby-flo/lib/ruby/gems/2.1.0/gems/spring-1.7.1/lib/spring/client/run.rb:76: syntax error, unexpected ')', expecting kEND
from /usr/lib/ruby-flo/lib/ruby/gems/2.1.0/gems/spring-1.7.1/lib/spring/client.rb:5
from /usr/lib/ruby-flo/lib/ruby/gems/2.1.0/gems/spring-1.7.1/bin/spring:48:in `require'
from /usr/lib/ruby-flo/lib/ruby/gems/2.1.0/gems/spring-1.7.1/bin/spring:48
当我禁用 spring 时,能够 运行 抽取任务。
DISABLE_SPRING=1 捆绑执行耙 test:read_message
但不确定问题的根本原因是什么,它在我的本地工作正常而无需禁用 spring 但在产品中却不行。
运行 rake 任务出现语法错误:
bundle exec rake test:read_message
ruby -v
2.1.0
/ruby/gems/2.1.0/gems/spring-1.7.1/lib/spring/client/run.rb:76: syntax error, unexpected ':', expecting ')' (SyntaxError)
..._env, env.server_command, out: File::NULL)
/usr/lib/ruby-flo/lib/ruby/gems/2.1.0/gems/spring-1.7.1/lib/spring/client/run.rb:76: syntax error, unexpected ')', expecting kEND
from /usr/lib/ruby-flo/lib/ruby/gems/2.1.0/gems/spring-1.7.1/lib/spring/client.rb:5
from /usr/lib/ruby-flo/lib/ruby/gems/2.1.0/gems/spring-1.7.1/bin/spring:48:in `require'
from /usr/lib/ruby-flo/lib/ruby/gems/2.1.0/gems/spring-1.7.1/bin/spring:48
当我禁用 spring 时,能够 运行 抽取任务。
DISABLE_SPRING=1 捆绑执行耙 test:read_message
但不确定问题的根本原因是什么,它在我的本地工作正常而无需禁用 spring 但在产品中却不行。