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

separate all messages during reload #893

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

rochala
Copy link
Collaborator

@rochala rochala commented Jul 3, 2023

Fixes #865

@@ -52,7 +41,8 @@ class OutputExtractor(getScalaJsContent: () => Option[String],
&& instrumentations.toList.flatten.isEmpty
&& runtimeError.isEmpty
&& !isDone
&& !isSbtMessage
&& !isHiddenSbtMessage
&& !isReloading
Copy link
Contributor

Choose a reason for hiding this comment

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

Does that mean that we never show the user output when the sbt instance is reloading? Is that not an issue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Scastie output is displayed in the following way:
It starts with the SbtOutput and prints them until the first UserOutput is found. Afterwards it cleans the console and displays only the UserOutput. So changing this line effectively makes all output messages from reloading to be shown until the first UserOutput is printed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ideally, we should add a button or a way to check build output in the UI, but this is not the scope of this issue.

@rochala rochala merged commit bc817f0 into scalacenter:main Jul 4, 2023
1 check passed
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.

User and Sbt output is not separated properly
2 participants