sphinx-contrib / matlabdomain

A Sphinx extension for documenting Matlab code
http://sphinxcontrib-matlabdomain.readthedocs.io/
Other
70 stars 46 forks source link

Unexpected parse warning #221

Closed willem-pennings closed 11 months ago

willem-pennings commented 1 year ago

I have a MATLAB class file which looks perfectly fine to me, but sphinx complains about it by throwing a warning:

WARNING: [sphinxcontrib-matlabdomain] Parsing failed in Classes.@Test.Test. Check if valid MATLAB code.

I have stripped down the contents of this class by trial and error (including the constructor) until I found the part it complains about, and this is the unmodified content of the remaining file:

classdef Test
    % Foo bar

    methods
        angle = GetAngle(obj);
        length = GetLength(obj);
    end
end

It has something to do with these two method definitions but I honestly do not know what...

joeced commented 11 months ago

Sorry for the late reply and thanks for the report.

I'll take a look at this very soon