microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.28k stars 28.57k forks source link

Terminal sticky scroll not working at all #200509

Open Destroy666x opened 9 months ago

Destroy666x commented 9 months ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Enable terminal.integrated.stickyScroll.enabled
  2. Type some command with long output like ffmpeg -codecs in various shells: customized cmd, Git Bash, PowerShell, etc.
  3. No sticky scroll to be seen

I got lots of terminal settings edited, temporarily removing these from settings.json didn't do anything. Don't know how to debug it further without losing much time.

VSCodeTriageBot commented 9 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.85.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

joyceerhl commented 8 months ago

/gifPlease

VSCodeTriageBot commented 8 months ago

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.

Happy coding!

Destroy666x commented 8 months ago

What exactly do you want me to GIF? Just the sticky scroll not working as described? If so, sure, but not sure what value it brings.

Tyriar commented 8 months ago

How long is the output, does it fill your scrollback completely such that the input command was trimmed off the top? Try increasing terminal.integrated.scollback if this is the case. (tracked in https://github.com/microsoft/vscode/issues/198010)

Also does ffmpeg -codecs exit or does it keep running? A screenshot of the bottom of the terminal as well as where the command was input would be helpful.

Haawron commented 8 months ago

I'm experiencing the same issue.

Before reporting, I've gone through the following checklist: [✓] Ensured terminal.integrated.stickyscroll is enabled in user, remote, and workspace settings. [✓] Reloaded VSCode five times. [✓] Reopened the terminal five times, ensuring to terminate and restart it each time, not just closing the panel. [✓] The issue persists in both local and remote blank workspaces. [✓] Set terminal.integrated.stickyscroll.maxlinecount to 5.


Additional information that might be relevant:

Destroy666x commented 8 months ago

How long is the output,

Lots of lines, but also happens with commands with less lines output.

Try increasing terminal.integrated.scollback if this is the case

Didn't help. I had 6666 value there, way more than the output of checked commands.

Also does ffmpeg -codecs exit or does it keep running?

It's running for a moment then stops.

Additional details:

Destroy666x commented 8 months ago

Here's a demonstration on all 3: 2023 12 19 20 05 31 257 Settings_-_OBS-AdvancedSceneSwitcher

Just in case it matters, I'm using oh-my-posh as prompt. And clink for cmd enhancer. No other CLI modifications other than VSCode's terminal settings. Git Bash is the most pure with 0 changes, so I'd expect it to work there primarily if anywhere, not in PowerShell 7.

Take-Me1010 commented 8 months ago

I have similar issue in Windows 10 and Powershell 7, with VScode 1.85.1. In my case, sticky scroll works well in naive powershell 7 defined by the following profile:

{
    "terminal.integrated.profiles.windows": {
        "PowerShell": {
            "path": "pwsh",
            "icon": "terminal-powershell"
        },
}

However, if I launch my terminal with commands as the following profile:

{
    "terminal.integrated.profiles.windows": {
        "pipenv": {
            "path": "pwsh",
            "args": [
                "-Command",
                "pipenv",
                "shell"
            ],
            "icon": "vm"
        },
}

stciky scroll does not work. Here, Pipenv is a tool for python virtual environment.

d-mahard commented 6 months ago

same issue here, tried with cmd (windows), git bash, WSL. Also when all extensions are disabled. v1.87.0, also v1.88.0-insider with default setting

Welding-Torch commented 5 months ago

Same issue. Tried it in both powershell and git bash.