Skip to content

The property '...' is set to ... which is out of range is very unhelpful #4256

@jsoref

Description

@jsoref

throw new ArgumentException($"The property '{propertyName}' is set to {newValue} which is out of range");

Test case:
check-spelling-sandbox/upgraded-garbanzo-vigilant-journey@91674af
Results:
https://github.com/check-spelling-sandbox/upgraded-garbanzo-vigilant-journey/actions/runs/22208910261

Annotations

2 errors
test
The property 'line' is set to 2 which is out of range
test
Unable to process command '::add-matcher::/home/runner/work/upgraded-garbanzo-vigilant-journey/upgraded-garbanzo-vigilant-journey/a.json' successfully.


Notes:

  1. It'd be helpful if the error message reported a file name and line number (preferably as an annotation, this happens for unhappy workflows)
  2. It'd be helpful if the problem matcher complained that the regexp field was not present
  3. If you're going to complain about fields, it's best to complain in numerical sort order (1 before 2) instead of alphabetical key order (line before message)
  4. I don't understand why failure to process a problem matcher is deemed as fatal. Problem matchers are merely aids to help people interpret logs, they aren't mission critical. What's critical is that a workflow run to completion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions