View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

Message 'new' not understood.

back to error messages

error dump


ERROR:
Message 'new' not understood.

RECEIVER:
   nil
ARGS:
Instance of Array {    (01D98B28, gc=80, fmt=01, flg=81, set=00)
}
CALL STACK:
	Object::doesNotUnderstand
		arg this = nil
		arg selector = 'new'
		arg args = [0]

how to cause it:

if you try to create an instance of  a nonexisting class,
this error appears. 
the interpreter looks up for a Metaclass of that name which is nil.

how to avoid it, if known

you have to find out what class you are missing which can be not so trivial,
as you don't know its name. Look into the method definition where the error
occurred and see what classes are created there with .new. one of these
might be missing in the library you are using, for example because the author
forgot to include it or you are missing the library altogether.




Link to this Page