Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-6413

validate reports incorrect line numbers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: app
    • Labels:

      Description

      Using the following contents saved in test.yml:

      test: 1
      test2: *
      

      Run:

      evergreen validate  -f test.yml
      

      Result:

      ERROR: load project error(s): yaml: line 1: did not find expected alphabetic or numeric character
      invalid configuration
      

      If you paste the same contents into http://www.yamllint.com/, it produces the correct error message:

       (<unknown>): did not find expected alphabetic or numeric character while scanning an alias at line 2 column 8 
      

      Evergreen's validator references the wrong line number. This is a more significant issue on actual, non-trivial project files because when neither of the two lines is simple one can spend a bit of time trying to find an error when none exists.

      (I upgraded the evergreen binary prior to reporting this.)

        Attachments

          Activity

            People

            Assignee:
            backlog-server-evg Backlog - Evergreen Team
            Reporter:
            oleg.pudeyev Oleg Pudeyev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: