Skip to content

Escaped newlines in error message #2

Closed

Description

@ethomson

I provided an invalid version and architecture to the setup-python action:

    - name: 'Select Python version'
      uses: actions/setup-python@master
      with:
        version: $PYTHON_VERSION
        architecture: $PYTHON_ARCH

(I was attempting to make variable expansion happen.) The error message was surprising, with what appear to be escaped \r and \n:

##[error]Version $PYTHON_VERSION with arch $PYTHON_ARCH not found%0D%0AAvailable versions:%0D%0A%0D%0A

I would expect either actual newlines or some other type of whitespace, not %0D%0A.

Activity

  1. self-assigned this
    on Nov 6, 2019
  2. konradpabjan commented on Nov 6, 2019

    @konradpabjan
    Contributor

    Not seeing this error. I used environment variables to get the same type of error and this is happening:

    image

    We use pythons .join(os.EOL) so there shouldn't be any weird escape characters, see here:

    ].join(os.EOL)

    Maybe there were some weird things going on with how env variables were being passed in when this was first created but I haven't been able to repo this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions