sphinx-contrib / matlabdomain

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

Parsing warning #217

Closed joeced closed 1 month ago

joeced commented 10 months ago

We failed to parse this correctly

classdef ConanInterface < handle
   properties(Abstract, SetAccess=protected)
      remotes;
      active_remote;
      conan_home;
      remotes_json;
      db_file;
      settings_file;
   end

   methods(Abstract)
      % Support functions
      generateConanfile(dir, package_info)
      full_package_info = getFullPackageInfo(build_info, package_info)
      build_info = parseBuildInfo(self);
      [tf, version, install_dir]= find(self, prefixed_package)

      % Functions that actually call 'conan'
      version = search(prefixed_package);
      clean_conan_info = info(call_dir)
      package_info = install(package_info);
      remove(prefixed_pkg_name);
   end
end

This triggers a : [sphinxcontrib-matlabdomain] Unexpected class attribute: 'SharedTestFixtures'....

classdef (SharedTestFixtures={AnotherTestFixture()}) ...
        TestCase < matlab.unittest.TestCase
    % Class that inherits from MATLABs built-in ``matlab-unittest.TestCase``.
    % See `unittest documentation <https://www.mathworks.com/help/matlab/matlab_prog/write-simple-test-case-using-classes.html>`_.

...
end
joeced commented 1 month ago

Fixed in #https://github.com/sphinx-contrib/matlabdomain/commit/4d890d7e434b3b18541a7227c9329d7cd9e02184.