yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.44k stars 2.73k forks source link

Unnecessary line deletion #8352

Open probablykasper opened 4 years ago

probablykasper commented 4 years ago

Bug description

Whenever yarn logs to the console, it seems to log the escape sequence for deletes the line. In cases where that escape sequence doesn't work, the log looks like this:

image

Command

For the screenshot above, this is the command I ran:

yarn install --no-progress

What is the current behavior? The "delete line" escape sequence appears whenever yarn logs to the console.

What is the expected behavior? Only send the escape sequence when necessary.

Steps to Reproduce

  1. I'm encountering this issue when using lazydocker, so install that, plus Docker and docker-compose.
  2. Create package.json:
    {
      "private": true,
      "dependencies": {
        "express": "^4.17.0"
      }
    }
  3. Create docker-compose.yml:
      yarn-bug:
        tty: true 
        container_name: yarn-bug
        build: .
        volumes:
          - ./:/usr/src/app
  4. Create Dockerfile:
    FROM node:14.11-alpine
    WORKDIR /usr/src/app
    COPY package.json ./
    CMD ["yarn", "install"]
  5. Run the lazydocker command
  6. Click on the yarn-bug service
  7. Press c and click on up

Environment

probablykasper commented 4 years ago

This issue was mentioned in a comment of issue #1956.