You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When saving the results of the linter to a file the ANSI codes should always be removed.
Current Behavior
When saving the results of the linter to a file within a CI pipeline on AzDO the ANSI codes were not removed. Running the same command on the terminal (MacOS 13.2.1 + zsh/bash) the ANSI codes are removed and everything is fine.
We are writing the lint results back to a pull request in AzDO and this is how it is looking like (without the sed workaround being applied)
I did not yet check any other CI/CD platform like GitHub Actions, Jenkins, etc.
It looks like that environment does not support the formatting/coloring we are doing using chalk. Such environments should be detected by chalk itself (through supports-color). But I recall similar issues with Azure in the past.
If possible, could you test whether setting the environment variable CI=true for the ui5lint command resolves this?
I just tested it. Setting the env variable CI to true and running the linter does not solve the issue. Then I checked the chalk GitHub repo and FORCE_COLOR=0 is what I was looking for. We may can add it to the documentation.
Glad to hear that you were able to resolve the issue. I'm still not sure whether this is an issue with chalk or Azure, knowing that Azure can display colors in other places. I'll close this issue for now. If more people run into this, we may add something to the documentation.
Expected Behavior
When saving the results of the linter to a file the ANSI codes should always be removed.
Current Behavior
When saving the results of the linter to a file within a CI pipeline on AzDO the ANSI codes were not removed. Running the same command on the terminal (MacOS 13.2.1 + zsh/bash) the ANSI codes are removed and everything is fine.
We are writing the lint results back to a pull request in AzDO and this is how it is looking like (without the sed workaround being applied)
I did not yet check any other CI/CD platform like GitHub Actions, Jenkins, etc.
Steps to Reproduce the Issue
Context
pnpm 9.4.0
Ubuntu 22.04
The text was updated successfully, but these errors were encountered: