lib/origen/application.rb in origen-0.7.25 vs lib/origen/application.rb in origen-0.7.26
- old
+ new
@@ -34,10 +34,13 @@
unless caller[0] =~ /version.rb.*/
root = Pathname.new(caller[0].sub(/(\\|\/)?config(\\|\/)application.rb.*/, '')).realpath
app = base.instance
app.root = root.to_s
if Origen.plugins_loaded? && !Origen.loading_top_level?
- Origen.log.warning "The #{app.name} plugin is using a non-standard loading mechanism, upgrade to a newer version of it to get rid of this warning (please report a bug to its owner if this warning persists)"
+ # This situation of a plugin being loaded after the top-level app could occur if the app
+ # doesn't require the plugin until later, in that case there is nothing the plugin owner
+ # can do and we just need to accept that this can happen.
+ # Origen.log.warning "The #{app.name} plugin is using a non-standard loading mechanism, upgrade to a newer version of it to get rid of this warning (please report a bug to its owner if this warning persists)"
Origen.app.plugins << app
else
Origen.register_application(app)
end
app.add_lib_to_load_path!