Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
changlichun opened this issue Jul 9, 2023 · 3 comments
Closed
Labels

Comments

@changlichun
Copy link

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
Copy link
Collaborator

joeced commented Jul 9, 2023

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

@joeced
Copy link
Collaborator

joeced commented Jul 13, 2023

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 joeced added the bug label Sep 11, 2023
joeced added a commit that referenced this issue Dec 16, 2023
- Detect if we are about overwrite an entry in the `entities_table`.
- Get `mod` when needed.
joeced added a commit that referenced this issue Dec 16, 2023
- Detect if we are about overwrite an entry in the `entities_table`.
- Get `mod` when needed.
- Refactor and add test.
- Update change log
@joeced
Copy link
Collaborator

joeced commented Jan 4, 2024

Should be fixed in the latest release.

@joeced joeced closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants