Skip to content

Log package loading messages to the index log #1861

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

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Dec 6, 2024

No description provided.

@ahoppen
Copy link
Member Author

ahoppen commented Dec 6, 2024

@swift-ci Please test

@ahoppen ahoppen merged commit 7cc63f5 into swiftlang:main Dec 6, 2024
3 checks passed
@ahoppen ahoppen deleted the log-package-loading branch December 6, 2024 17:02
ahoppen added a commit to ahoppen/swift-integration-tests that referenced this pull request Dec 7, 2024
`self.process.stdout.read` reads a number of Unicode characters, but the `Content-Length` specifies number of bytes. This started causing deterministic issues since swiftlang/sourcekit-lsp#1861 is logging messages from package loading, which contains emojis.

Switch `stdout` and `stderr` to binary mode and manually decode them into UTF-8 when needed.
ahoppen added a commit to ahoppen/swift-integration-tests that referenced this pull request Dec 11, 2024
`self.process.stdout.read` reads a number of Unicode characters, but the `Content-Length` specifies number of bytes. This started causing deterministic issues since swiftlang/sourcekit-lsp#1861 is logging messages from package loading, which contains emojis.

Switch `stdout` and `stderr` to binary mode and manually decode them into UTF-8 when needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants