MaibornWolff / MaibornWolff/codecharta

Unifiedparser: Progress Bar creates new lines when terminal window too small

Open
#4,122 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
529
Forks
56
Avg merge
7h 17m
Merged PRs (30d)
34

Description

# Bug

## Expected Behavior

When I launch `ccsh unifiedparser . -o exposed.uni` (here [JetBrains exposed Framework](https://github.com/JetBrains/Exposed) but that is irrelevant)
THEN the progress bar should always be on the same line

## Actual Behavior

When I launch `ccsh unifiedparser . -o exposed.uni` (here [JetBrains exposed Framework](https://github.com/JetBrains/Exposed) but that is irrelevant)
AND my terminal window is small
THEN every file name that is larger than the space available produces a line break

Small terminal window:
Image

Medium terminal window:

Image

Wide terminal window:

Image

## Steps to Reproduce the Problem
1. Change the size of your terminal so a file name produces a line break

## Specifications
- CodeCharta Version: 1.134.0
- OS: MacOs
- Shell: Fish

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the `ccsh unifiedparser` entry point and locate the progress-bar output used while processing files. Reproduce the issue with a narrow terminal and a filename that exceeds the available width, then verify that progress remains on one line without unwanted line breaks.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.