Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-490

Issue a warning when executing a Command which contains one or more arguments equal to the empty string

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • None
    • General
    • None

      A user on IRC reported an issue where he was seeing the error:

      g++.exe: error: : No such file or directory

      This was due to having inadvertently passed an empty string argument to the cFlags property. I can think of very few valid use cases for passing an empty string argument to underlying commands. Of course there WILL be one in some weird edge case, but for 99% of cases it presents a difficult-to-debug issue to the end user.

      Should we strip empty string arguments when executing Commands and/or issue a warning (which can be turned off of course)?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            jbornema Joerg Bornemann
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes