DEV: Add a plugin incompatibility message (PR #8151)


	11: from /Users/cvx/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require'
	10: from /Users/cvx/discourse/discourse/config/application.rb:94:in `<main>'
	9: from /Users/cvx/discourse/discourse/config/application.rb:95:in `<module:Discourse>'
	8: from /Users/cvx/discourse/discourse/config/application.rb:306:in `<class:Application>'
	7: from /Users/cvx/discourse/discourse/config/application.rb:59:in `with_plugin_guard'
	6: from /Users/cvx/discourse/discourse/config/application.rb:307:in `block in <class:Application>'
	5: from lib/discourse.rb:168:in `activate_plugins!'
	4: from lib/discourse.rb:168:in `each'
	3: from lib/discourse.rb:171:in `block in activate_plugins!'
	2: from /Users/cvx/discourse/discourse/lib/plugin/instance.rb:494:in `activate!'
	1: from /Users/cvx/discourse/discourse/lib/plugin/instance.rb:494:in `instance_eval'
/Users/cvx/discourse/discourse/plugins/discourse-checklist/plugin.rb:13:in `activate!': undefined method `responds_to?' for #<Plugin::Instance:0x00007f7f3b908708>
Did you mean?  respond_to? (NoMethodError)


You are unable to build Discourse due to errors in the plugin at

Please try removing this plugin and rebuilding again!

cc: @coding-horror

If anyone has a better for with_plugin_guard() please come forward. :wink: I’ll rename it and extract into /lib.


You’ve signed the CLA, CvX. Thank you! This pull request is ready for review.

If you’ve confirmed it works well I don’t see a reason not to merge it.

Very minor but you could avoid the &block parameter altogether and use yield

I actually changed it from yield to &block before committing. :stuck_out_tongue: I find it useful to have an explicit block reference in a method signature - you can see if given method uses a block without reading its code.