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

Improve nonexistent input action message when using a Shortcut resource in a Button's Shortcut property #25572

Open
AlexHolly opened this issue Feb 2, 2019 · 1 comment

Comments

@AlexHolly
Copy link
Contributor

x11
8698876

Is there a way to make the error more specific? (point to the Button/ShortCut)

image

Steps:

  1. Create a Button
  2. Add "ShortCut"
  3. Add "InputEventAction"
  4. Run and press any key
@Calinou Calinou changed the title Error message on "Button ShortCut InputEventAction" is not detailed Improve nonexistent input action message when using a Shortcut resource in a Button's Shortcut property Nov 28, 2021
@EricEzaM
Copy link
Contributor

EricEzaM commented Oct 1, 2022

Can't really be done. That message comes from a call to ERR_FAIL_COND_V_MSG in C++ from what I can tell, and that is in InputMap::event_get_action_status. It has no knowledge of the methods that called it and as such could not get information about the button.

Here is the stack trace for where the error is generated:
image

An option is to GREP your code for the name of the nonexistent action, or open it in something like VS Code and do a project-wide search for the term (as it will also search tscn)

> grep -r dontexist
scene.tscn:action = &"dontexist"

image

I think this can be closed under "won't do" for now...?

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

4 participants