Forum: Ruby on Rails plugins don't bubble syntax errors up correctly

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Aafa8848c4b764f080b1b31a51eab73d?d=identicon&s=25 Phlip (Guest)
on 2007-01-21 21:29
(Received via mailing list)

I have this issue:

> The RoR plugin mechanism is just plain horrible. Plugins do not work like
> most ruby classes because they are loaded in a slightly convoluted way and
> most errors end up getting swallowed by RoR. Of course this can be fixed,
> but it is really annoying and makes programming even more stone-age than
> it should be. You end up with errors like this:

in `const_missing': uninitialized constant AjaxValidation (NameError)
in `load_plugin'

> The issue here is NOT that AjaxValidation isn't defined. Instead, it is
> that in the definition of AjaxValidation an error has occurred and this
> caused the load of AjaxValidation to completely fail AND there is
> absolutely no logging of the error that caused AjaxValidation to fail. So,
> you resort to writing to stdout each line of code to figure out where the
> problem is. That sucks.

So, is there any QnD fix to get the real error message out of the bogus
"unitialized constant" message? And is there any progress afoot to fix

  Phlip <-- NOT a blog!!!
This topic is locked and can not be replied to.