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

Warn users about errors in loading RC files #817

Merged
merged 1 commit into from Dec 18, 2023
Merged

Warn users about errors in loading RC files #817

merged 1 commit into from Dec 18, 2023

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Dec 18, 2023

  1. Because IRB.rc_file always generates an rc file name, even if the file doesn't exist, we should check the file exists before trying to load it.
  2. If any type of errors occur while loading the rc file, we should warn the user about it.

Closes #579

1. Because `IRB.rc_file` always generates an rc file name, even if the
   file doesn't exist, we should check the file exists before trying to
   load it.
2. If any type of errors occur while loading the rc file, we should
   warn the user about it.
@st0012 st0012 added the bug Something isn't working label Dec 18, 2023
@st0012 st0012 requested a review from a team December 18, 2023 12:30
@st0012 st0012 merged commit 37ffdc6 into master Dec 18, 2023
47 checks passed
@st0012 st0012 deleted the fix-#579 branch December 18, 2023 14:36
matzbot pushed a commit to ruby/ruby that referenced this pull request Dec 20, 2023
(ruby/irb#817)

1. Because `IRB.rc_file` always generates an rc file name, even if the
   file doesn't exist, we should check the file exists before trying to
   load it.
2. If any type of errors occur while loading the rc file, we should
   warn the user about it.

ruby/irb@37ffdc6b19
@nurse nurse mentioned this pull request Feb 1, 2024
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.

When require in .irbrc fails with LoadError, error message will be suppressed
2 participants