Reply to Thread

Post a reply to the thread: Compiler output to sent to console on command line builds

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 08-01-2017, 12:35 PM
    linder

    Re: Compiler output to sent to console on command line builds

    Kevin,

    thank you for your suggestion. We have to check if the underlying development system lets us attach a console to the GUI compiler application.

    BTW, there are quite a few SB customers using an automated (nightly) build feature and they are processing the compiler.txt to automatically find out what went wrong.

    But we'll check if it is possible to add an option to write to the console instead.

    If a command line compile fails, the error code level is set to the number of errors. If the command line compile cannot be started (e.g. project file not found), the return value is 1.

    Friedrich
  • 08-01-2017, 07:49 AM
    KCL

    Compiler output to sent to console on command line builds

    Maybe this feature is implemented and I just don't know the switch, so here is my situation:

    In my project, I'm using a wildcard for a filename that's being added to the SB_INSTALLDIR. When I compile on command line (actually build on a CI server), the project builds "successfully" but the installer .exe is missing the file (because it wasn't there). A message was left in the compiler.txt that hinted me towards a failed build, however, I expected the compile to fail completely. Here is the message in compiler.txt:

    Code:
    SB10Project.sbp(127): warning GEN1022: Wildcard queue empty: C:\[.......]\Firmware_version-*.bin
    One nice thing in Jenkins is that you can force a error condition causing the output to not get copied to the production folders by adding console output text parsing rules. So, what I propose is that there is functionality added so that instead of writing compile output to a compiler.txt file, it is printed to the console (as well?), so that it is clear what went wrong without having to persist .txt files and look at them every time a build occurs. This would be a feature added that would add benefit to all automated build processes.

    Kevin

    Now that I think about it, I wasn't checking the return value of the command line call. Would that be non-zero if I got that warning?

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •