rbs icon indicating copy to clipboard operation
rbs copied to clipboard

Unsupported splat node occurrence(Ruby::UnsupportedSyntax)

Open HoneyryderChuck opened this issue 4 years ago • 5 comments

I'm getting the mentioned error when doing smth like:


ERRORS = [TypeError, StandardError]

# ...
case error
when *ERRORS # error happens here
# ...

HoneyryderChuck avatar Aug 09 '21 15:08 HoneyryderChuck

We've got the same error from super.

    def initialize(*args, **kwargs, &block)
      super(*args, **kwargs, &block)

      check_user_permissions(context[:user], Document.new, :search?)
    end
args: ::Array[untyped]

Array

=> Array

Unsupported splat node occurrence(Ruby::UnsupportedSyntax)

POPPIN-FUMI avatar Dec 20 '21 16:12 POPPIN-FUMI

Hi everyone! Is there any way to fix this issue?

hasrthur avatar Oct 28 '22 15:10 hasrthur

I ran into this issue as well with

class MyDeviseModel
  def send_devise_notification(notification, *args)
    devise_mailer.send(notification, self, *args) if notification == :reset_password_instructions
  end
end

the signature for send comes from rbs itself in core/object.rbs

type Object::name = Symbol | String
def send: (name name, *untyped args) ?{ (*untyped) -> untyped } -> untyped

mt-dfrey avatar Jan 16 '23 06:01 mt-dfrey

Any update on this? Running into this as well now on stuff like .reject methods etc

coding-red-panda avatar Jan 23 '23 14:01 coding-red-panda

I also catch this problem

Unsupported splat node occurrence Diagnostic ID: Ruby::UnsupportedSyntax
 
rescue *Array(exceptions) => e

rda1902 avatar Feb 05 '23 10:02 rda1902