- Before the ‘movefile’ command, check that the file you are trying to move exist. You can use ‘exist’ function to check this.
- Implement ‘try-catch’ blocks around the code that might throw errors. This will allow you to catch exceptions and provide more informative error messages or take corrective action.
ERROR: Loading report template: BugFinder.rpt Check if the file is a valid report (.rpt) template.
6 次查看(过去 30 天)
显示 更早的评论
I designed the script to execute the Polyspace Bug Finder (R2019b) in MATLAB R2019b with script .
With the standalone Polyspace R2019b application I am able to generate Bug finder report but with the script it is showing the message : Loading report template: BugFinder.rpt and Check if the file is a valid report (.rpt) template.
Please refer the attached snap of the error.
Below is the line of code :
template_BF = fullfile(polyspaceroot,'toolbox','polyspace','psrptgen','templates', 'bug_finder','BugFinder.rpt');
If I debug the script in templare_BF it shows BugFinder.rpt found but not able to generate Bug Finder report.
0 个评论
回答(1 个)
SANKALP DEV
2024-1-4
Hey Ankita,
I understand that you are encountering an issue while generating the bug finder report using a script in MATLAB R2019B.
The error indicates that the Polyspace Bug file, ‘Bugfinder.rpt,’ is not recognized as valid. This could be due to an incomplete path, please recheck that the ‘C:\Program Files\Polyspace\R2019b\toolbox\pol,’ full path is correct in your script.
The error message ‘No matching files were found’ suggests that the source file specified in the ‘movefile’ command does not exist or the path is incorrect. You should verify that the temporary report (temprep) exists at the specified location before attempting to move it.
To troubleshoot these errors, you can refer to following steps:
Please refer to following documentation to know more about the ‘exist’ function, ‘try-catch’ block and Polyspace Bug finder:
Polyspace Bug finder- https://www.mathworks.com/help/bugfinder/ref/polyspacebugfinder.html?s_tid=doc_ta
Hope this helps.
Regards,
Sankalp dev
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!