metacello icon indicating copy to clipboard operation
metacello copied to clipboard

Insufficient debug info when `Warning: The following definitions had errors while loading.`

Open dolezvo1 opened this issue 1 year ago • 2 comments

I've been trying to update an older project to work with newer codebase. During the install, I got the following warning/error:

The following definitions had errors while loading.  Press Proceed to try to load them again (they may work on a second pass):
[list of classes with errors]

That is to be expected, but the issue is that this warning/error does not (as far as I can tell) provide any information about the individual errors in the given definitions, which is very unhelpful for someone trying to fix those errors.

There is a variable called errorDefinitions which contains the definitions mentioned in the message above, but no trace of the exact errors.

dolezvo1 avatar Jul 06 '24 15:07 dolezvo1

Yes we know and we faced this (suboptimal) design. It is bad. This behavior is a legacy. Can you tell us on which version of Pharo you are experiencing it?

Ducasse avatar Jul 14 '24 16:07 Ducasse

Can you also provide a little case showing your problem so that we can use it to see how to fix it.

Ducasse avatar Jul 14 '24 16:07 Ducasse