ERROR: Loading report template: BugFinder.rpt Check if the file is a valid report (.rpt) template.

2 次查看(过去 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.

回答(1 个)

SANKALP DEV
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:
  • 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.
Please refer to following documentation to know more about the ‘exist’ function, ‘try-catch’ block and Polyspace Bug finder:
Hope this helps.
Regards,
Sankalp dev
  1 个评论
Ankita
Ankita 2024-1-4
Hi Sankalp,
Thank You for your help.
I debugged the Path for BugFinder.rpt, I attached the snap in the error.
Somehow I am not able to invoke BugFinder.rpt file hence Bug finder report generation failed and in move file command it is not getting the intended file.

请先登录,再进行评论。

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by