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

Invoking Call with an invalid method will silently fail in C# #46645

Closed
andy-noisyduck opened this issue Mar 4, 2021 · 3 comments
Closed

Invoking Call with an invalid method will silently fail in C# #46645

andy-noisyduck opened this issue Mar 4, 2021 · 3 comments
Assignees
Milestone

Comments

@andy-noisyduck
Copy link
Contributor

Godot version:
3.2.3 (Mono)

OS/device including version:
Win 10

Issue description:
Any invocation of Call("method") to a method that does not exist will silently fail in C#. It will continue on as if the invocation was successful. This is obviously incorrect behaviour. The GDscript equivalent of the same code will correctly raise a "Nonexistent function" error.

Steps to reproduce:

// This will be silently ignored
Call("MethodThatDoesNotExist");

The equivalent GDScript code call("method_that_does_not_exist"); will correctly give the error `Invalid call. Nonexistent function 'method_that_does_not_exist (via call)'

Minimal reproduction project:
Testing-Call.zip
Repro project includes both C# and GDS versions of script.

@andy-noisyduck
Copy link
Contributor Author

Not sure if #43282 (which seems to be specifically for Tool scripts) is also due to this bug.

@raulsntos
Copy link
Member

@raulsntos raulsntos added this to the 3.x milestone Jul 12, 2023
@akien-mga akien-mga modified the milestones: 3.x, 3.6 Aug 2, 2023
@akien-mga
Copy link
Member

Fixed by #79433.

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

No branches or pull requests

5 participants