Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Test Result output on Linux when using print #1393

Open
RandomHashTags opened this issue Feb 16, 2025 · 1 comment
Open

Missing Test Result output on Linux when using print #1393

RandomHashTags opened this issue Feb 16, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@RandomHashTags
Copy link

Describe the bug
Title describes it.

To Reproduce

  1. Copy paste the following code
  2. Run the test by clicking the run button for yup provided by vscode-swift

NOT reproducible:

  • on macOS
  • executing swift test from terminal
struct League3Tests {
    @Test func yup() {
        var string:String = ""
        for i in 1...2000 {
            string += "\(i)\n"
        }
        print(string)
    }
}

Which always produces:

Without line breaks:

Image

Expected behavior
Printing of the whole string and test result output with no missing content.

Environment

  • OS: Arch Linux (6.13.2-arch1-1)
  • Swift version (swift-6.0.3-RELEASE)
  • Visual Studio Code version: 1.96.4-1
  • vscode-swift version: 2.0.0

Additional context
Forum post: https://forums.swift.org/t/77808

@plemarquand
Copy link
Contributor

Thanks for the report, with the simple reproduction case! I've tracked this back to a longstanding issue in node-pty, microsoft/node-pty#72. We'll have to see if we can work around it. VSCode uses the same module to drive its built in terminal, so maybe they've already worked around it in https://github.com/microsoft/vscode/blob/3ccdd1e63d4819349903e17019264b954e56db44/src/vs/workbench/contrib/terminal/node/terminalProcess.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants