c9 / architect

A simple yet powerful plugin system for large-scale node applications
MIT License
982 stars 129 forks source link

Entire application fails when one plugin fails to load #54

Open deepal opened 8 years ago

deepal commented 8 years ago

I found this problem (for me at least), in this module while using it in my application. When the application loads, and if loading of one plugin fails, the entire application fails. This is a considerable problem when you are developing a pluggable application where a set of developers implement the core of the applications and some others develop plugins for it. When one plugin fails, it affects the entire application.

I prefer if there's a way to only load the modules which were successfully loaded. And also +1 if I can get a list of failed modules so that I can display custom error log messages to identify them. I hope to create a fix for this and create a pull request if this issue seems sensible.

nightwing commented 8 years ago

In the new version used in c9 list of unresolved modules is passed with the error https://github.com/c9/architect/pull/55 We are using it to retry createApp https://github.com/c9/core/blob/master/plugins/c9.vfs.standalone/www/test.js#L543 but an option to start app even if some plugins have failed might be indeed useful