[bug #68237] "load" emits long series of "classdef not found" warnings when loading struct array

foreverallama <[email protected]> Wed, 15 Apr 2026 08:17:06 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #4, bug #68237 (group octave):

Thanks for the feedback. The issue is not related to struct arrays, but
loading of classdef objects. The "Comments" field contains a classdef object
(a table, looks like), which is not compatible with Octave yet.

The recent updates attempt to natively load the classdef object in Octave.
However, this fails as the corresponding class definition is not available to
Octave, emitting the warning. Since it appears to be a large struct array, it
results in the same warning being displayed for each element in the array.

The warning could be more clear (specifying the classname, for example). I
also agree with Philip's #3, allowing to suppress the warning is useful. I
don't think we can do anything else here, as it's not related to the struct
array itself. I'll take a look and see what we can do here.

As a side, I don't think the performance issue is related to displaying the
warnings itself, but it could be a side effect of loading classdef objects,
which kind of goes on behind the scenes regardless of whether you have the
class definitions or not. Anyways, it's something we're working to improve as
well.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68237>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCad+BwgAKCRCqLAuaBUf3
TpG2AQDHvQe6vLBSfmm23kaLWzyFs/YjU47ybSr1zTdjhoJa2AD/Qe9Lr5c09q1C
kC7cIiFxbVqTa4oi9nsW4ixGc8MfOwM=
=dRH2
-----END PGP SIGNATURE-----