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

validate reports incorrect line numbers

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major - P3
    • Resolution: Unresolved
    • None
    • Backlog
    • app

    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

            backlog-server-evg Backlog - Evergreen Team
            oleg.pudeyev@mongodb.com Oleg Pudeyev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: