sphinx-contrib / matlabdomain

A Sphinx extension for documenting Matlab code
Other
64 stars 45 forks source link

Unexpected parse warning #221

Closed willem-pennings closed 8 months ago

willem-pennings commented 10 months 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 8 months ago

Sorry for the late reply and thanks for the report.

I'll take a look at this very soon