Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Ruby 1.9 incompatibility #3

Open
nroach opened this issue Jun 12, 2012 · 1 comment
Open

Possible Ruby 1.9 incompatibility #3

nroach opened this issue Jun 12, 2012 · 1 comment

Comments

@nroach
Copy link

nroach commented Jun 12, 2012

From server logs following addition of plugin (on boot, before any pages requested or attachments uploaded):

2012-06-12T15:52:00+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/rails/plugin.rb:158:in eval': /app/vendor/plugins/redmine_msg_preview/init.rb:21: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n' (SyntaxError) 2012-06-12T15:52:00+00:00 app[web.1]: when "SENDER": 2012-06-12T15:52:00+00:00 app[web.1]: ^ 2012-06-12T15:52:00+00:00 app[web.1]: /app/vendor/plugins/redmine_msg_preview/init.rb:23: syntax error, unexpected keyword_when, expecting keyword_end 2012-06-12T15:52:00+00:00 app[web.1]: when "SUBJECT" 2012-06-12T15:52:00+00:00 app[web.1]: ^ 2012-06-12T15:52:00+00:00 app[web.1]: when "CREATION_TIME" 2012-06-12T15:52:00+00:00 app[web.1]: /app/vendor/plugins/redmine_msg_preview/init.rb:25: syntax error, unexpected keyword_when, expecting keyword_end 2012-06-12T15:52:00+00:00 app[web.1]: ^ 2012-06-12T15:52:00+00:00 app[web.1]: /app/vendor/plugins/redmine_msg_preview/init.rb:31: syntax error, unexpected keyword_end, expecting $end 2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.14/lib/active_support/core_ext/kernel/reporting.rb:11:insilence_warnings'
2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/rails/plugin.rb:158:in block in evaluate_init_rb' 2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/rails/plugin.rb:48:inload'
2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/rails/plugin.rb:154:in evaluate_init_rb' 2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/plugins/engines/lib/engines/plugin.rb:44:inload'
2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/rails/plugin/loader.rb:38:in block in load_plugins' 2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/rails/plugin/loader.rb:37:ineach'
2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/rails/plugin/loader.rb:37:in load_plugins' 2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/initializer.rb:369:inload_plugins'
2012-06-12T15:52:00+00:00 app[web.1]: from /app/config/environment.rb:21:in <top (required)>' 2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1 /gems/rails-2.3.14/lib/initializer.rb:113:inrun'
2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/initializer.rb:165:in process' 2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:inrequire'
2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in block in require' 2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:innew_constants_in'
2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rails-2.3.14/lib/commands/server.rb:84:in <top (required)>' 2012-06-12T15:52:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:inrequire'

@nroach
Copy link
Author

nroach commented Jun 12, 2012

Update: Looks to be related to unhandled parser errors. Issue is fixed by error-handling routines implemented in https://github.com/benizi/redmine_msg_preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant