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

REPL: Add back :silent command #22248

Merged
merged 5 commits into from
Dec 20, 2024
Merged

Conversation

natsukagami
Copy link
Contributor

Fix #21661

  • Change quiet flag to no longer silence warnings
  • Put quiet into State of REPL
  • Add :silent command to toggle automatic printing of outputs

It has never been an option to the REPL user (until now),
and warnings can always be turned off with `-nowarn` CLI argument
or `:settings -nowarn`.
... so that we can toggle it
@natsukagami natsukagami marked this pull request as ready for review December 19, 2024 14:52
Copy link
Contributor

@Gedochao Gedochao left a comment

Choose a reason for hiding this comment

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

Error:  Test dotty.tools.repl.TabcompleteTests.commands failed: java.lang.AssertionError: expected:<List(:doc, :exit, :help, :imports, :load, :quit, :reset, :settings, :type)> but was:<List(:doc, :exit, :help, :imports, :load, :quit, :reset, :settings, :silent, :type)>, took 1.132 sec
Error:      at dotty.tools.repl.TabcompleteTests.commands$$anonfun$1(TabcompleteTests.scala:222)

This test needs fixing, I think

Copy link
Contributor

@Gedochao Gedochao left a comment

Choose a reason for hiding this comment

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

LGTM!

@Gedochao Gedochao requested a review from dwijnand December 20, 2024 13:27
@natsukagami natsukagami merged commit 3e62731 into scala:main Dec 20, 2024
29 checks 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.

Add support for the :silent command in the REPL
3 participants