Skip shell's way of categorizing error/warning message RRS feed

  • Question

  • We have a custom logger class derived from IDEBuildLogger.

    We would like to handle the error message on our own by having a custom parser to parse error message and build formatted message and ErrorTask out of it.

    We do the custom parsing in ProcessBuildMessage function.

    But the problem is, shell automatically categories the output line as error message and reports the line number and column number incorrectly.

    For Eg: the following line doesn't reach ProcessBuildMessage function, instead it is handled by ErrorHandler function.

    ".././main.c", line 11: Error:  #20: identifier "ddd" is undefined

    Output from Immediate window for errorEvent instance (BuildErrorEventArgs) received in ErrorHandler

    "#20: identifier \"ddd\" is undefined"
    "\".././main.c\", line 11"

    Is there way we could tell shell not to automatically handle error/warning messages?

    Monday, October 15, 2012 5:51 AM

All replies

  • We try using msbuild to compile your solution and add /consoleloggerparameters:NoSummary.

    More information about command line of MSBuild, please check http://msdn.microsoft.com/en-us/library/ms164311.aspx

    Another way you can disable all the warnings in the properties. However we can't disable the errors.

    Tuesday, October 16, 2012 3:14 AM
  • Thanks for your response. /consoleloggerparameters:NoSummary seems to just suppress final error/warning summary.

    But shell still seems to handle the error/warning message internally. We are looking at a way to skip this handling by shell so that we could have a better control over the message handling in our custom logger class.
    Wednesday, October 17, 2012 5:17 AM