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

Rescue Exception, ignore warning in completion doc_namespace #777

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

tompng
Copy link
Member

@tompng tompng commented Nov 21, 2023

Fixes #776
Add rescue Exception and $VERBOSE=nil to doc_namespace.

doc_namepace calls const_get.
const_get might raise any kind of exception if it uses autoload.
const_get might show warning if the const is deprecated.

Actually, it does not show warning in doc_namespace for deprecated constant without this fix. I don't know why. (Maybe it warns only once in the first const_get call inside completion_candidates calculation)

@st0012 st0012 added the bug Something isn't working label Nov 22, 2023
@tompng tompng merged commit c2f6716 into ruby:master Nov 22, 2023
24 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Nov 22, 2023
@tompng tompng deleted the rescue_every_error_on_completion branch November 22, 2023 12:06
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.

TypeCompletion raise error completing autoloaded constant SortedSet
2 participants