Project

General

Profile

EVM Plugin Github Syntax error, unexpected ':', expecting ')' (SyntaxError)

Added by Jack Black over 10 years ago

Hey Guys,

I installed the EVM (Earned Value) Plugin.
Does anyone know this Error and does anyone hava a Answere for my how I can fix this?

Thank you

/var/lib/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require': /var/www/redmine-2.2.2/plugins/redmine_evm/lib/redmine_evm/patches/project_patch.rb:83: syntax error, unexpected ':', expecting ')' (SyntaxError)
...ssues.where(original_issue_id: issue.id, baseline_id: baseli...
^
/var/www/redmine-2.2.2/plugins/redmine_evm/lib/redmine_evm/patches/project_patch.rb:83: syntax error, unexpected ':', expecting '='
...sue_id: issue.id, baseline_id: baseline_id).first.try(:exclu...

Complete Error
______

kobil@marco-ubuntu-12-04-lts:/var/www/redmine-2.2.2$ sudo ruby script/rails server webrick -e production -p 3000
=> Booting WEBrick
=> Rails 3.2.11 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/var/lib/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require': /var/www/redmine-2.2.2/plugins/redmine_evm/lib/redmine_evm/patches/project_patch.rb:83: syntax error, unexpected ':', expecting ')' (SyntaxError)
...ssues.where(original_issue_id: issue.id, baseline_id: baseli...

/var/www/redmine-2.2.2/plugins/redmine_evm/lib/redmine_evm/patches/project_patch.rb:83: syntax error, unexpected ':', expecting '='
...sue_id: issue.id, baseline_id: baseline_id).first.try(:exclu...

from /var/lib/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
from /var/lib/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
from /var/lib/gems/1.8/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
from /var/www/redmine-2.2.2/plugins/redmine_evm/lib/redmine_evm.rb:2:in `_callback_before_49'
from /var/lib/gems/1.8/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:462:in `_run__986092299__prepare__4__callbacks'
from /var/lib/gems/1.8/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `send'
from /var/lib/gems/1.8/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:405:in `__run_callback'
from /var/lib/gems/1.8/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
from /var/lib/gems/1.8/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `send'
from /var/lib/gems/1.8/gems/activesupport-3.2.11/lib/active_support/callbacks.rb:81:in `run_callbacks'
from /var/lib/gems/1.8/gems/actionpack-3.2.11/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
from /var/lib/gems/1.8/gems/actionpack-3.2.11/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
from /var/lib/gems/1.8/gems/railties-3.2.11/lib/rails/application/finisher.rb:47
from /var/lib/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `instance_exec'
from /var/lib/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:30:in `run'
from /var/lib/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:55:in `run_initializers'
from /var/lib/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `each'
from /var/lib/gems/1.8/gems/railties-3.2.11/lib/rails/initializable.rb:54:in `run_initializers'
from /var/lib/gems/1.8/gems/railties-3.2.11/lib/rails/application.rb:136:in `initialize!'
from /var/lib/gems/1.8/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `send'
from /var/lib/gems/1.8/gems/railties-3.2.11/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /var/www/redmine-2.2.2/config/environment.rb:14
from /var/www/redmine-2.2.2/config.ru:3:in `require'
from /var/www/redmine-2.2.2/config.ru:3
from /var/lib/gems/1.8/gems/rack-1.4.4/lib/rack/builder.rb:51:in `instance_eval'
from /var/lib/gems/1.8/gems/rack-1.4.4/lib/rack/builder.rb:51:in `initialize'
from /var/www/redmine-2.2.2/config.ru:0:in `new'
from /var/www/redmine-2.2.2/config.ru:0
kobil@marco-ubuntu-12-04-lts:/var/www/redmine-2.2

Colum 83 looks:

next if issue.baseline_issues.where(original_issue_id:issue.id, baseline_id).first.try(:exclude)