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

Add a new initialization step to validate IRB.conf's values #953

Merged
merged 1 commit into from
May 10, 2024

Conversation

st0012
Copy link
Member

@st0012 st0012 commented May 6, 2024

Currently, users can only find out that they have set a wrong value for IRB configs when the value is used, with opaque error messages like "comparison of Integer with true failed (TypeError)".

This commit adds a new initialization step to validate the values of some IRB configs, so that users can find out about the wrong values during the initialization of IRB.

Closes #774

Currently, users can only find out that they have set a wrong value
for IRB configs when the value is used, with opaque error messages like
"comparison of Integer with true failed (TypeError)".

This commit adds a new initialization step to validate the values of
some IRB configs, so that users can find out about the wrong values
during the initialization of IRB.
@st0012 st0012 added the bug Something isn't working label May 6, 2024
@st0012 st0012 self-assigned this May 6, 2024
@st0012 st0012 mentioned this pull request May 6, 2024
Copy link
Member

@tompng tompng left a comment

Choose a reason for hiding this comment

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

Added error message looks great 👍

@tompng tompng merged commit af8ef29 into master May 10, 2024
59 checks passed
@tompng tompng deleted the improve-config-value-type-compatibility branch May 10, 2024 11:40
matzbot pushed a commit to ruby/ruby that referenced this pull request May 10, 2024
values
(ruby/irb#953)

Currently, users can only find out that they have set a wrong value
for IRB configs when the value is used, with opaque error messages like
"comparison of Integer with true failed (TypeError)".

This commit adds a new initialization step to validate the values of
some IRB configs, so that users can find out about the wrong values
during the initialization of IRB.

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

Successfully merging this pull request may close these issues.

EVAL_HISTORY is busted
2 participants