Skip to content

Fix two AutoTrace bugs #198

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

Merged
merged 3 commits into from
Jul 11, 2025
Merged

Fix two AutoTrace bugs #198

merged 3 commits into from
Jul 11, 2025

Conversation

duncanpo
Copy link
Member

Fixes #195
Fixes #196

  1. Fixes a bug when specifying multiple folders as either ExcludeFiles or AdditionalFiles, the code fails to concatenate the files in the folders due to incorrect vector orientation. The fix is to force file lists to be always column vectors.

  2. Autotrace can use dependency analysis to return a file list for instrumentation. However, dependency analysis can return MATLAB files that are not M code (.mat files, Simulink models, etc.). Autotrace cannot handle these non-code files. The fix is to filter out all files that are not .m or .mlx.

@duncanpo duncanpo requested a review from MWSestabro July 11, 2025 18:22
@duncanpo duncanpo self-assigned this Jul 11, 2025
@duncanpo
Copy link
Member Author

Scott, please also review this one. The code change is only a few lines, but there are a few additional test points.

Copy link
Member

@MWSestabro MWSestabro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look good, the tests look to good to me as well.

@duncanpo duncanpo merged commit 7fcd34e into main Jul 11, 2025
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AutoTrace fails when files of types other than .m and .mlx is involved Autotrace errors when specifying multiple directories as ExcludeFiles
2 participants