danskdynamit / discourse-hot-topics

GNU General Public License v3.0
8 stars 8 forks source link

Error plugin.rb:100:in `<module:Jobs>': uninitialized constant Jobs::Jobs::Scheduled #8

Open randall-coding opened 4 years ago

randall-coding commented 4 years ago

Specs: I'm using Ruby 2.6.1 and Rails 6.0.0 and the latest Discourse from Github.

Issue: I added this plugin to the plugins folder in discourse then started up my rails server with bundle exec rails server and ran into this error.

1: from …/plugins/discourse-hot-topics/plugin.rb:98:in block in activate!' .../plugins/discourse-hot-topics/plugin.rb:100 :in module:Jobs’: uninitialized constant Jobs::Jobs::Scheduled Did you mean? Scheduler (NameError) INCOMPATIBLE PLUGIN

I’m new to discourse so perhaps I’m making some fatal mistake? or is anyone else able to reproduce this issue?

I searched high and low for anyone else having the uninitialized constant Jobs::Jobs::Scheduled problem, but couldn't find anyone else with the same issue.

oskarrough commented 4 years ago

Hi @Randall-Coding, thanks for reporting. I haven't seen the issue before so I'm guessing it has something to do with some recent dependency update? If @joebuhlig has a spare moment, maybe he can help us 🙏

https://github.com/danskdynamit/discourse-hot-topics/blob/8f8e853920c52421c69f22903fabca96f957ce36/plugin.rb#L98