Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] Third Party Tools
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-31-2003, 02:00 PM
Jginzo1007 Jginzo1007 is online now
Registered User
 
Join Date: 03-31-2003
Posts: 3
MSDEV and Total number of Build Errors

Is there any way to get a total number of build errors amond all Visual Studio Projects? I know the log will log failed project, but our previous solution was able to keep a running total of build errors as well.

Any help appreciated.

JG
Reply With Quote
  #2  
Old 03-31-2003, 04:15 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-20-2003
Location: Dunedin, New Zealand
Posts: 114
About the only way to do this would be to parse the log file generated by Visual Studio and total the error and warnings or whatever.

What we find more useful is to pull out the project summarys using the attached (JScript) code. We put the result in an email and attach the compiler log then send the lot off to the people most likely to have introduced the errors.

Peter
Attached Files
File Type: txt vserrors.txt (752 Bytes, 2315 views)
Reply With Quote
  #3  
Old 03-31-2003, 04:23 PM
Jginzo1007 Jginzo1007 is online now
Registered User
 
Join Date: 03-31-2003
Posts: 3
Yes I realized that later - The VSStudio steps will fail if any project fails, so I can also just have a failure step that emails me when this happens.

The idea after all is to know if any MSDev project has any errors, but the total number of errors is not important - knowing which projects failed is.

Am I on the right track here? What I plan to do is just have a separate step for each Visual Studio Workspace that I need to build, with a failure step that emails me the log. That way if a project fails to build, I will get an email with the output from MSDEV.


Thanks,

JG
Reply With Quote
  #4  
Old 03-31-2003, 05:57 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-20-2003
Location: Dunedin, New Zealand
Posts: 114
That will do it, but check out the script I posted. It goes one step further and identifies the individual projects that have failed to build in the compile of a solution configuration. The guys here really like this!

Peter
Reply With Quote
  #5  
Old 03-31-2003, 06:01 PM
Jginzo1007 Jginzo1007 is online now
Registered User
 
Join Date: 03-31-2003
Posts: 3
Yes I see - looks like it parses the log looking for "errors" and when found gets the project name and outputs it - looks good.

thanks,

JG
Reply With Quote
  #6  
Old 04-09-2003, 03:39 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-20-2003
Location: Dunedin, New Zealand
Posts: 114
Exclamation

After a bit of mucking about and assistance from Kinook I have altered the error counting function I posted to this thread. DevStudio generated null characters in it's compiler log output file and the nulls were getting JScript into a strange state. The new version of the function skips the null characters to "fix" the problem.

I've also included a function that checks for a nasty link error that happens occasionally. In my builds, if I get such and error, I simply retry the compile.

Peter
Reply With Quote
  #7  
Old 04-13-2003, 03:32 PM
pjaquiery pjaquiery is online now
Registered User
 
Join Date: 01-20-2003
Location: Dunedin, New Zealand
Posts: 114
Just noticed, no attachment to my previous post. Here 'tis.
Attached Files
File Type: txt vserrors.txt (1.4 KB, 2275 views)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 02:43 AM.


Copyright © 1999-2023 Kinook Software, Inc.