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

Strange error message: "Method expected 0 arguments, but called with 0" #80826

Closed
johnny-byte opened this issue Aug 20, 2023 · 2 comments · Fixed by #80844
Closed

Strange error message: "Method expected 0 arguments, but called with 0" #80826

johnny-byte opened this issue Aug 20, 2023 · 2 comments · Fixed by #80844

Comments

@johnny-byte
Copy link

Godot version

Godot v4.1.1.stable

System information

Windows 10

Issue description

Get strange error message "Method expected 0 arguments, but called with 0" while generating signal
image

Steps to reproduce

  1. clone https://github.com/johnny-byte/godot_issue/tree/master
  2. run
  3. click mouse button right
  4. get error message

Minimal reproduction project

BugScene.zip

@AcatXIo
Copy link
Contributor

AcatXIo commented Aug 20, 2023

I can confirm that the following error is printed with Godot version v4.2.dev3.official.013e8e3af when right-pressing the button from the attached zip minimal reproduction project:

ERROR: Error calling from signal 'right_button_click' to callable: 'Control(Button.gd)::_on_my_color_picker_right_pressed': Method expected 0 arguments, but called with 0.
   at: emit_signalp (core/object/object.cpp:1084)

@KoBeWi
Copy link
Member

KoBeWi commented Aug 21, 2023

Your emit() does not provide the required argument.
But yeah, the error is strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants