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

improvement: Print Java all at once #1513

Merged
merged 1 commit into from
May 29, 2024
Merged

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented May 29, 2024

image

It seems that when writing on date we can get one line first and then the other, which would duplicate the (${javaBin} -version:) message

@tgodzik tgodzik requested a review from kasiaMarek May 29, 2024 13:16
Comment on lines 41 to 42
outputChannel.appendLine(`${javaBin} -version:`);
outputChannel.appendLine(msg);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the reason we had javaVersionOut.stderr?.on("data", ...) is because, if running java -version fails await javaVersionOut will throw, so (await javaVersionOut).stderr as string won't get printed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, good point. I will just remove the initial line with -version there. It's not really adding anything and we already print which java is being looked into before that

@tgodzik tgodzik merged commit f767021 into scalameta:main May 29, 2024
10 checks passed
@tgodzik tgodzik deleted the fix-print branch May 29, 2024 14:07
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.

None yet

2 participants