formulahendry / formulahendry/vscode-code-runner

[Bug]Cannot clear Java previous output before run

Open
#1,048 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

- VS Code Version: 1.80.1
- OS Version: Windows 11 23h2 22631.2048(beta)
- Code Runner Version: 0.12.0

**Describe the bug**
When running Java code with Code Runner, the previous output in Terminal cannot be cleared by Code Runner settings. It just shows up as a transparent character, but is actually still in the Terminal and reappears in special cases. When I add the `cls` command for Java in the Code Runner settings, the `cd` command in the terminal disappears as well.

**To Reproduce**
Steps to reproduce the behavior:

1. Write a `.java` file and run with Code Runner
2. Then run it again and see the Terminal

**Actual behavior**
It just hide the previous output as a transparent character, they're still there.

**Expected behavior**
Clear the previous output as other language do, like `c` or `cpp`.

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://github.com/formulahendry/vscode-code-runner/assets/61617417/8da88f8a-e596-4736-8c8d-cc1dd47a2426)
run the second time
![image](https://github.com/formulahendry/vscode-code-runner/assets/61617417/67a92bb0-9be8-4dd6-9f46-ec13ed221047)
run the third time

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.