sphinx-contrib / matlabdomain

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

Error report: AttributeError: 'MatClass' object has no attribute 'path' #204

Closed changlichun closed 7 months ago

changlichun commented 1 year ago

I got such an error when I have a class named exactly same as the folder name. Although I can easily avoid it, I wonder if it can be fixed.

My test file is attached. mytest.zip

joeced commented 1 year ago

Thanks for the report. I'm away from a computer at the moment, but will look into it ASAP.

joeced commented 1 year ago

I found the issue, but it will take some time to fix the problem. Basically, we create a dictionary, entities_table, of all known (MATLAB) entities in the search directory. Further, we extent this dictionary we "short" names. Therefore, having the same a class named the same as a folder, result in two entities with the same name.

joeced commented 7 months ago

Should be fixed in the latest release.