I'm new to Final Builder. How do I get the specific info of the failed step so I can send that info out in email on my failure script?
I would like to send out the compiler errors generated when my VStudio 6.0 C++ fails.
Any help would be appreciated.
Hi,
I have attached an example project of how you can catch errors that occur in you build process and collect the error details. You can manipulate this example to suit your needs.
Regards,
Steve
CatchErrorsExample.fbz7 (3.248 KB)
Thanks.
When I try the same thing, my variables are not available in the list of available variable names for the catch. I have tried saving the project and closing the app, restarting. Still my variables are not in the list.
Do you have any idea on that?
Solved the issue with variables not showing up for the list in the catch. However, I really want the specific line information and source code reference that is produced from the Visual C++ compiler. I need this info to send back to the developer who had bad code.
The competitive product, VisualBuild, gives me this text very easily.
Such as this:
NCRMotorCO.cpp
C:\FASTLANE.FB\4.2\Development\Platform\Controls\NCRMotorCO\NCRMotorCO.cpp(43) : error C2065: 'xxxxrrrr' : undeclared identifier
Error executing cl.exe.
However, the catch statement only gives me this data from the variables.
"msdev.exe" and "ErrorCode: 2"
We are really wanting to buy your product, but this one area is something we need to get resolved.
This should not be the case if the Try, Catch actions are configured correctly. I setup a Build Visual Studio Solution (solution contains multiple errors) action within a Try, Catch action block.
When I run the project I am able to capture the following data from the variables configured on the Catch action page:
Build VS.Net Solution [ I:\Data\Temp\Test\Win32\Win32Project\Win32Project.sln ]
1>i:\data\temp\test\win32\win32project\win32project\win32project.cpp(10): error C2065: ‘zzz’ : undeclared identifier
1>i:\data\temp\test\win32\win32project\win32project\win32project.cpp(10): error C2143: syntax error : missing ‘;’ before ‘return’
1>i:\data\temp\test\win32\win32project\win32project\win32project.cpp(12): error C2065: ‘blah’ : undeclared identifier
1>i:\data\temp\test\win32\win32project\win32project\win32project.cpp(12): error C2146: syntax error : missing ‘;’ before identifier ‘blah’
1>i:\data\temp\test\win32\win32project\win32project\win32project.cpp(12): error C2065: ‘blah’ : undeclared identifier
1>i:\data\temp\test\win32\win32project\win32project\win32project.cpp(12): error C2143: syntax error : missing ‘;’ before ‘}’
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
devenv.com returned Error code : 1
You could also use Output Monitors (available on the Runtime tab of the action) which allow you to search for specific text with an output. If you used an output monitor searches for ‘error’ and used the behavior of ‘Save All Matches To A Variable’ you could also capture the above information.
Regards,
Steve
I was able to get it working by setting the Visual Studio step to log to the errortext variable that I created and change the catch not to send anything to that variable.
Thanks for the hints.