-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Typechecking doesn't allow for raise
without arguments
#418
Comments
I haven't been able to reproduce this problem. What versions of Solargraph and Ruby are you using? |
Ruby 2.7.2 Here's some actual code that I'm seeing the issue with. The later two raise both cause the module Retries
def with_retry(times: 1, error: StandardError)
raise ArgumentError, "must retry at least one time" if times < 1
begin
yield
rescue Exception => e
raise unless Array(error).any? { |match_error| match_error === e }
raise if times == 0
times -= 1
retry
end
end
end |
This appears to be a problem specifically with core documentation for Ruby 2.7+. The definition was previously As a temporary stopgap, I'll probably add a redefinition of |
Fixed in v0.43.0. |
https://rubydoc.info/stdlib/core/Kernel:raise
The text was updated successfully, but these errors were encountered: