Closed pasqualedante closed 2 years ago
@pasqualedante Could you tell us which version of redmine_searchable_selectbox you are using? The latest redmine_searchable_selectbox is compatible with Redmine 5.0.1, so the plugin may be out of date.
Hi @ishikawa999 , I have cloned the tip of this repo (release 0.1.9)
@pasqualedante
Thanks to you I was able to reproduce the problem.
I have added the code for the fix in the fix-14 branch, could you please try it? If no problem, I will merge it into the master branch.
Ciao @ishikawa999 for me r+ for your patches: it works, thanks!
@pasqualedante Thank you!
Installation on Redmine 5.0.1 fails with the following error message:
App 7818 output: Error: The application encountered the following error: uninitialized constant SearchableSelectbox::Patches::MyHelperPatch (NameError) App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in'
App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in '
App 7818 output: /usr/local/rvm/gems/ruby-3.0.0/gems/passenger-6.0.14/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:397:in '
App 7818 output: /usr/local/rvm/gems/ruby-3.0.0/gems/passenger-6.0.14/src/helper-scripts/rack-preloader.rb:30:in '
[ E 2022-05-18 17:15:13.2203 7789/Tf age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /opt/redmine: The application encountered the following error: uninitialized constant SearchableSelectbox::Patches::MyHelperPatch (NameError)
Error ID: a4d78bde
Error details saved to: /tmp/passenger-error-Orc6Md.html
const_get' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:95:in
cget' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:237:inblock (2 levels) in eager_load' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:26:in
block in ls' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:ineach_child' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader/helpers.rb:18:in
ls' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:232:inblock in eager_load' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:in
synchronize' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:217:ineager_load' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:in
each' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/loader.rb:317:ineager_load_all' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/railties-6.1.6/lib/rails/application/finisher.rb:133:in
block ininstance_exec' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/railties-6.1.6/lib/rails/initializable.rb:32:in
run' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/railties-6.1.6/lib/rails/initializable.rb:61:inblock in run_initializers' App 7818 output: /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/tsort.rb:228:in
block in tsort_each' App 7818 output: /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/tsort.rb:350:inblock (2 levels) in each_strongly_connected_component' App 7818 output: /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/tsort.rb:431:in
each_strongly_connected_component_from' App 7818 output: /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/tsort.rb:349:inblock in each_strongly_connected_component' App 7818 output: /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/tsort.rb:347:in
each' App 7818 output: /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/tsort.rb:347:incall' App 7818 output: /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/tsort.rb:347:in
each_strongly_connected_component' App 7818 output: /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/tsort.rb:226:intsort_each' App 7818 output: /usr/local/rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/tsort.rb:205:in
tsort_each' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/railties-6.1.6/lib/rails/initializable.rb:60:inrun_initializers' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/railties-6.1.6/lib/rails/application.rb:391:in
initialize!' App 7818 output: /opt/redmine/config/environment.rb:16:in<top (required)>' App 7818 output: config.ru:3:in
require' App 7818 output: config.ru:3:inblock in <main>' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in
instance_eval' App 7818 output: /opt/redmine/vendor/cache/ruby/3.0.0/gems/rack-2.2.3/lib/rack/builder.rb:125:ininitialize' App 7818 output: config.ru:1:in
new' App 7818 output: config.ru:1:in<main>' App 7818 output: /usr/local/rvm/gems/ruby-3.0.0/gems/passenger-6.0.14/src/helper-scripts/rack-preloader.rb:101:in
eval' App 7818 output: /usr/local/rvm/gems/ruby-3.0.0/gems/passenger-6.0.14/src/helper-scripts/rack-preloader.rb:101:inpreload_app' App 7818 output: /usr/local/rvm/gems/ruby-3.0.0/gems/passenger-6.0.14/src/helper-scripts/rack-preloader.rb:189:in
block inrun_block_and_record_step_progress' App 7818 output: /usr/local/rvm/gems/ruby-3.0.0/gems/passenger-6.0.14/src/helper-scripts/rack-preloader.rb:188:in
<module:PhusionPassenger>' App 7818 output: /usr/local/rvm/gems/ruby-3.0.0/gems/passenger-6.0.14/src/helper-scripts/rack-preloader.rb:29:in