clueware / redmine_my_roadmaps

Redmine plugin that expose global roadmaps for the user's projects.
39 stars 10 forks source link

redmine started with errors #2

Closed archonwang closed 12 years ago

archonwang commented 12 years ago

the error information as follows:

C:\Test_PRJ\redmine-1.3>ruby script/server -e production => Booting Mongrel => Rails 2.3.14 application starting on http://0.0.0.0:3000 C:/Ruby187/lib/ruby/1.8/yaml.rb:133:in load': syntax error on line 21, col 2: label_all_issue_type: 鎵€鏈夐棶棰樼被鍨? (ArgumentError) from C:/Ruby187/lib/ruby/1.8/yaml.rb:133:in load' from C:/Ruby187/lib/ruby/1.8/yaml.rb:144:inload_file' from C:/Ruby187/lib/ruby/1.8/yaml.rb:143:in open' from C:/Ruby187/lib/ruby/1.8/yaml.rb:143:inload_file' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:171:in load_yml' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:157:insend' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:157:in load_file' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:15:inload_translations' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:15:in each' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/base. rb:15:inload_translations' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/simpl e.rb:57:in init_translations' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/backend/simpl e.rb:40:inavailable_locales' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n/config.rb:39: in available_locales' from C:/Ruby187/lib/ruby/gems/1.8/gems/i18n-0.6.0/lib/i18n.rb:31:inava ilable_locales' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:226:in valid_locale?' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:243:inparse_extensions' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:233:in split' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:118:ininitialize' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:92:in new' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:92:increate_template' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:87:in templates_in_path' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:86:ineach' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:86:in templates_in_path' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /template.rb:69:inload!' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_s upport/dependencies.rb:173:in to_proc' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /paths.rb:40:ineach' from C:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-2.3.14/lib/action_view /paths.rb:40:in load!' from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:4 02:inload_view_paths' from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:1 94:in process' from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:1 13:insend' from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:1 13:in run' from C:/Test_PRJ/redmine-1.3/config/environment.rb:24 from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in gem_original_require' from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in require' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_s upport/dependencies.rb:182:inrequire' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_s upport/dependencies.rb:547:in new_constants_in' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_s upport/dependencies.rb:182:inrequire' from C:/Ruby187/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/commands/server. rb:84 from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in gem_original_require' from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in require' from script/server:3

archonwang commented 12 years ago

my enviroment redmine 1.3.2

Ruby version 1.8.7 (i686-linux) RubyGems version 1.3.7 Rack version 1.1.2 Rails version 2.3.14 Active Record version 2.3.14 Active Resource version 2.3.14 Action Mailer version 2.3.14 Active Support version 2.3.14 Application root /usr/local/redmine-1.3 Environment production Database adapter mysql Database schema version 20110902000000

clueware commented 12 years ago

Most probably an encoding issue with the locale files. I'll have a look this evening. Could you confirm your browser default locale and the default locale of your redmine machine, please?

archonwang commented 12 years ago

Firefox 3.6 + default locale simplified chinese.

clueware commented 12 years ago

Hello again,

I'm going to install a Ruby environment from scratch on a Windows machine to try and reproduce what you observed. Could you just paste here the result of "gem list --local"? It would help me recreate an identical environment.

Thanks!

archonwang commented 12 years ago

* LOCAL GEMS *

actionmailer (2.3.14) actionpack (2.3.14) activerecord (2.3.14) activeresource (2.3.14) activesupport (2.3.14) bundler (1.1.1) cgi_multipart_eof_fix (2.5.0) coderay (1.0.5) fastercsv (1.5.4) gem_plugin (0.2.3) i18n (0.6.0, 0.4.2) json (1.6.5) mongrel (1.1.5 x86-mingw32) mysql (2.8.1 x86-mingw32) net-ldap (0.3.1) pg (0.9.0 x86-mingw32) rack (1.4.1, 1.1.3) rails (2.3.14) rake (0.9.2.2) rdoc (3.12) rmagick (2.13.1) ruby-ole (1.2.11.3) ruby-openid (2.1.8) spreadsheet (0.6.8) sqlite3 (1.3.5 x86-mingw32) zip (2.0.2)

clueware commented 12 years ago

Still can't reproduce after installing the same gems you list - except rmagick. I'll further try to get the exact rmagick version install, meanwhile could you please make sure that the fr.yml files in config/locales and lang directories does not contain garbage? You can also try the latest tag: I've removed these labels while adding a filter option.

I'll update as soon as I get rmagick installed.

archonwang commented 12 years ago

interesting. maybe I have add a new localization file cause it. i add a zh.yml file with uft-8.

clueware commented 12 years ago

Rmagick installed and redmine 1.3.2 still starts properly with the plugin in place. Could you download the 0.0.2 tag, please, and check that the fr.yml files are still UTF-8?

Thanks.

archonwang commented 12 years ago

I checked the fr.yml. it's with utf-8, and It works.

and I want to add the Simplified_Chinese yml file. but not works with the error.

It's interesting. anything I've do wrong?

the zh.yml file is :

#################################################

Chinese strings go here for Rails i18n

zh: my_roadmaps_name: 我的路线图 permission_view_my_roadmaps:查看我的路线图 label_all_issue_type: 所有问题类型 label_exclude_closed_issues: 包括已关闭问题 label_x_closed_issue_not_shown: zero: " (0 个已关闭问题未显示)" one: " (1 个已关闭问题未显示)" other: " (%{count} 个已关闭问题未显示)" button_refresh: 刷新 #################################################

clueware commented 12 years ago

Ok, it better explains why it was working on my side. As soon as I've finished work on the shared versions, I'll try to include your translation.

clueware commented 12 years ago

I just commited some preliminary zh.yml files based on your translation, and it seems to work properly. Latest labels are obviously missing their translation, but the ones you provided are here. I think the problem was with the line "permission_view_my_roadmaps:查看我的路线图": a space between the ":" and the translation seems to be required.

archonwang commented 12 years ago

Thanks,I will try later

clueware commented 12 years ago

Hello Archon,

I'm putting back some english translation for the missing ones in the zh.ymls, so your users should see some english instead of "FIXME".