Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-09-2005, 11:34 AM
AndyFarr AndyFarr is online now
Registered User
 
Join Date: 08-12-2004
Posts: 16
Question SendMail Problem

I am getting the following error when trying to send the Fail Message produced when a Vs.Net C# Project Fails to build

Error expanding macros in property Message: <Error parsing scripts: Unrecoverable Parse Error at position 24333 - expecting section>

The only macro in the message contains the text output from the VS.Net Build Step. Any Ideas what Could be causing the problem ?

Text from macro in attached File

Thanks

Andy
Attached Files
File Type: txt build email fail message.txt (90.5 KB, 2003 views)
Reply With Quote
  #2  
Old 08-09-2005, 11:46 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
How is the macro referenced by the step being created? Can you post or send a .bld file that demonstrates the problem? If you use the FAILSTEP_OUTPUT/LASTSTEP_OUTPUT system macros, any characters that VBP treats specially (%, [, and ]) will normally be doubled to be treated as literal characters. Somehow, the macro that you are referencing contains non-doubled bracket chars which VBP is trying to evaluate as script code.
Reply With Quote
  #3  
Old 08-09-2005, 12:03 PM
AndyFarr AndyFarr is online now
Registered User
 
Join Date: 08-12-2004
Posts: 16
Calling Method

The SendMail is part of a Subroutine and the LASTSTEP_OUTPUT is copied to a Temporary macro as a parameter so I assume that the Special characters have not been doubled up in the copy.

Any way that I can solve this ?
Reply With Quote
  #4  
Old 08-09-2005, 12:17 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
At the place where you're referencing %LASTSTEP_OUTPUT%, use

[vbld_EscapeString("%LASTSTEP_OUTPUT%")]

instead
Reply With Quote
  #5  
Old 08-10-2005, 03:50 AM
AndyFarr AndyFarr is online now
Registered User
 
Join Date: 08-12-2004
Posts: 16
Still Fails

It fails on the Macro call with an "Unterminated String Constant" error Line 1 Character 37

This would appear to be a LineFeed 0x0A character. I wonder is the macro only interprates CRLF pairs I know some VB stuff fails on standalone LF charaters but this is the output from DEVENV so I have litle control over it.

Thanks for your support

Andy
Reply With Quote
  #6  
Old 08-10-2005, 07:19 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Duh, my test string didn't have multiple lines. In that case, use this instead:

[vbld_EscapeString(vbld_AllMacros()("LASTSTEP_OUTPU T").Value)]
Reply With Quote
  #7  
Old 08-10-2005, 08:58 AM
AndyFarr AndyFarr is online now
Registered User
 
Join Date: 08-12-2004
Posts: 16
Cool Thanks

That's sorted it.

Andy
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 07:51 PM.


Copyright © 1999-2023 Kinook Software, Inc.